Skip to content

Commit 87e0bcd

Browse files
authored
ci(workflow): fix test workflow to assure it is not skipped if test_matrix fails (#350)
1 parent 42a6ca8 commit 87e0bcd

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,18 +18,21 @@ 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
- run: npm ci
28-
- run: npm test --ignore-scripts # run lint only once
28+
- run: npm test --ignore-scripts
2929
test:
3030
runs-on: ubuntu-latest
3131
needs: test_matrix
3232
steps:
33-
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
33+
- run: exit 1
34+
if: ${{ needs.test_matrix.result != 'success' }}
35+
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
3436
- run: npm ci
3537
- run: npm run lint
38+
if: ${{ always() }}

0 commit comments

Comments
 (0)