Skip to content

Commit 5f39ea3

Browse files
authored
chore: test installation script (#37)
1 parent b0c84b1 commit 5f39ea3

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/test-install.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: test-install
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
test:
8+
name: install (${{ matrix.os }})
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [ubuntu-latest, macos-latest, windows-latest]
13+
runs-on: ${{ matrix.os }}
14+
steps:
15+
- uses: actions/checkout@v6
16+
- shell: bash
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
run: |
20+
INSTALL_DIR="$HOME/.loops-test"
21+
sh install.sh latest "$INSTALL_DIR"
22+
- shell: bash
23+
run: |
24+
INSTALL_DIR="$HOME/.loops-test"
25+
if [ "$RUNNER_OS" = "Windows" ]; then
26+
"$INSTALL_DIR/loops.exe" version
27+
else
28+
"$INSTALL_DIR/loops" version
29+
fi

0 commit comments

Comments
 (0)