Skip to content

Commit 874b169

Browse files
ci: add matrix status job
1 parent 507ac6a commit 874b169

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,46 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on: [push, pull_request, workflow_dispatch]
44

55
jobs:
66
test:
77
runs-on: ubuntu-latest
8+
timeout-minutes: 30
89
strategy:
910
matrix:
1011
nim: [1.6.20, stable]
1112
steps:
1213
- name: Checkout
13-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
15+
1416
- name: Install Nim
15-
uses: iffy/install-nim@v3
17+
uses: iffy/install-nim@v4
1618
with:
1719
version: ${{ matrix.nim }}
20+
1821
- name: Install NodeJS
19-
uses: actions/setup-node@v2
22+
uses: actions/setup-node@v4
2023
with:
21-
node-version: '18'
24+
node-version: 18
25+
2226
- name: Install test node
2327
working-directory: testnode
2428
run: npm install
29+
2530
- name: Run test node
2631
working-directory: testnode
2732
run: npm start &
33+
2834
- name: Build
2935
run: nimble install -y
36+
3037
- name: Test
3138
run: nimble test -y
39+
40+
status:
41+
if: always()
42+
needs: [test]
43+
runs-on: ubuntu-latest
44+
steps:
45+
- if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}
46+
run: exit 1

0 commit comments

Comments
 (0)