Skip to content

Commit 52e08e3

Browse files
committed
ci: add install.sh verification workflow
1 parent 243e725 commit 52e08e3

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Verify Installer
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- install.sh
8+
- .github/workflows/verify-installer.yml
9+
pull_request:
10+
paths:
11+
- install.sh
12+
- .github/workflows/verify-installer.yml
13+
14+
permissions:
15+
contents: read
16+
17+
concurrency:
18+
group: verify-installer-${{ github.ref }}
19+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
20+
21+
jobs:
22+
shellcheck:
23+
runs-on: ubuntu-latest
24+
timeout-minutes: 5
25+
steps:
26+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
27+
- run: shellcheck install.sh
28+
29+
install:
30+
timeout-minutes: 10
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
os: [ubuntu-latest, macos-latest]
35+
runs-on: ${{ matrix.os }}
36+
steps:
37+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
38+
- name: Run install.sh
39+
run: NEM_INSTALL_DIR="$RUNNER_TEMP/nem-bin" bash install.sh
40+
- name: Verify binary
41+
run: '"$RUNNER_TEMP/nem-bin/nem" version'

0 commit comments

Comments
 (0)