Skip to content

test-install

test-install #5

Workflow file for this run

name: test-install
on:
workflow_dispatch:
jobs:
test:
name: install (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- shell: bash
run: |
INSTALL_DIR="$HOME/.loops-test"
sh install.sh latest "$INSTALL_DIR"
- shell: bash
run: |
INSTALL_DIR="$HOME/.loops-test"
if [ "$RUNNER_OS" = "Windows" ]; then
"$INSTALL_DIR/loops.exe" version
else
"$INSTALL_DIR/loops" version
fi
test-ps1:
name: install ps1 (windows)
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- shell: pwsh
run: |
$InstallDir = "$env:TEMP\loops-test"
.\install.ps1 -InstallDir $InstallDir
- shell: pwsh
run: |
$InstallDir = "$env:TEMP\loops-test"
& "$InstallDir\loops.exe" version