Skip to content

Commit fc163a5

Browse files
authored
ci(workflow): fix test workflow to assure it is not skipped if test_matrix fails (#517)
1 parent 256ee71 commit fc163a5

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
@@ -18,20 +18,23 @@ jobs:
1818
- 16
1919
- 18
2020
steps:
21-
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
22-
- name: "Use Node.js ${{ matrix.node_version }}"
23-
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
21+
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
22+
- name: Use Node.js ${{ matrix.node_version }}
23+
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93
2424
with:
25-
node-version: "${{ matrix.node_version }}"
25+
node-version: ${{ matrix.node_version }}
2626
cache: npm
2727
- name: Install
2828
run: npm ci
2929
- name: Test
30-
run: npm test --ignore-scripts # run lint only once
30+
run: npm test --ignore-scripts
3131
test:
3232
runs-on: ubuntu-latest
3333
needs: test_matrix
3434
steps:
35-
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
35+
- run: exit 1
36+
if: ${{ needs.test_matrix.result != 'success' }}
37+
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
3638
- run: npm ci
3739
- run: npm run lint
40+
if: ${{ always() }}

0 commit comments

Comments
 (0)