Skip to content

Commit 28b5446

Browse files
committed
Split tests and example tests into distinct jobs
This commit separates the jobs for running regular tests and example tests. Example tests are now included for Windows, increasing coverage until hirosystems/clarinet#1634 is resolved.
1 parent 4b0fd07 commit 28b5446

File tree

1 file changed

+30
-7
lines changed

1 file changed

+30
-7
lines changed

.github/workflows/ci.yml

+30-7
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- master
1010

1111
jobs:
12-
test:
12+
tests:
1313
runs-on: ${{ matrix.os }}
1414
timeout-minutes: 3
1515
strategy:
@@ -33,11 +33,34 @@ jobs:
3333
- name: Run tests
3434
run: npm test
3535

36+
example-tests:
37+
runs-on: ${{ matrix.os }}
38+
timeout-minutes: 3
39+
strategy:
40+
fail-fast: false
41+
matrix:
42+
os: [ubuntu-latest, macos-latest, windows-latest]
43+
node: [22, 20, 18]
44+
45+
steps:
46+
- name: Checkout code
47+
uses: actions/checkout@v4
48+
49+
- name: Use Node.js ${{ matrix.node }}
50+
uses: actions/setup-node@v4
51+
with:
52+
node-version: ${{ matrix.node }}
53+
54+
- name: Install dependencies
55+
run: npm ci
56+
3657
- name: Run example tests
58+
shell: bash
3759
run: |
38-
./rv example counter test
39-
./rv example counter invariant
40-
./rv example cargo test
41-
./rv example cargo invariant
42-
./rv example reverse test
43-
./rv example slice test
60+
cd example
61+
../rv . counter test
62+
../rv . counter invariant
63+
../rv . cargo test
64+
../rv . cargo invariant
65+
../rv . reverse test
66+
../rv . slice test

0 commit comments

Comments
 (0)