-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1017 Bytes
/
test-install.yml
File metadata and controls
41 lines (38 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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