Skip to content

Commit 5e59d90

Browse files
authored
ci(workflow): fix test workflow to assure it is not skipped if test_matrix fails (#262)
1 parent c872fd8 commit 5e59d90

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,23 @@ jobs:
1717
- 16
1818
- 18
1919
steps:
20-
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
21-
- name: "Use Node.js ${{ matrix.node_version }}"
22-
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
20+
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
21+
- name: Use Node.js ${{ matrix.node_version }}
22+
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93
2323
with:
24-
node-version: "${{ matrix.node_version }}"
24+
node-version: ${{ matrix.node_version }}
2525
cache: npm
2626
- name: Install
2727
run: npm ci
2828
- name: Test
29-
run: npm test --ignore-scripts # run lint only once
29+
run: npm test --ignore-scripts
3030
test:
3131
runs-on: ubuntu-latest
3232
needs: test_matrix
3333
steps:
34-
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
34+
- run: exit 1
35+
if: ${{ needs.test_matrix.result != 'success' }}
36+
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
3537
- run: npm ci
3638
- run: npm run lint
39+
if: ${{ always() }}

0 commit comments

Comments
 (0)