Skip to content

Commit 15de413

Browse files
authored
ci: add matrix for other OSes (#19)
1 parent f8383e8 commit 15de413

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/run-tests.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Compile and run unit tests
1+
name: Compile and run tests
22

33
permissions: read-all
44

@@ -10,8 +10,15 @@ on:
1010

1111
jobs:
1212
run-tests:
13-
runs-on: ubuntu-latest
14-
13+
name: Tests on ${{ matrix.os }}
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os:
19+
- ubuntu-latest
20+
- windows-latest
21+
- macos-latest
1522
steps:
1623
- name: Check out repository
1724
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -28,10 +35,8 @@ jobs:
2835
run: npm ci
2936

3037
- name: Disable AppArmor
38+
if: ${{ matrix.os == 'ubuntu-latest' }}
3139
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
3240

33-
- name: Build the project
34-
run: npm run build
35-
3641
- name: Run tests
3742
run: npm run test

0 commit comments

Comments
 (0)