Skip to content

Commit

Permalink
ci(workflow): fix test workflow to assure it is not skipped if test_m…
Browse files Browse the repository at this point in the history
…atrix fails (#332)
  • Loading branch information
oscard0m authored Sep 1, 2022
1 parent 31e3b48 commit e6799a5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,22 @@ jobs:
- 16
- 18
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: "Use Node.js ${{ matrix.node_version }}"
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93
with:
node-version: "${{ matrix.node_version }}"
node-version: ${{ matrix.node_version }}
cache: npm
- run: npm ci
- run: npm test

test:
runs-on: ubuntu-latest
needs: test_matrix
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- run: exit 1
if: ${{ needs.test_matrix.result != 'success' }}
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- run: npm ci
- run: npm run test:typescript
- run: npm run lint
if: ${{ always() }}

0 comments on commit e6799a5

Please sign in to comment.