Skip to content

Commit

Permalink
fix(test): force test failure (#74)
Browse files Browse the repository at this point in the history
* ci(test): run 'test' job always

* ci(test): add logic to fail if dependent job failed
  • Loading branch information
oscard0m authored Aug 31, 2022
1 parent 2696265 commit 5d774da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ jobs:
run: npm test --ignore-scripts # run lint only once
test:
runs-on: ubuntu-latest
if: ${{ always() }}
needs: test_matrix
steps:
- run: exit 1
if: ${{ needs.test_matrix.result != 'success' }}

- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- run: npm ci
- run: npm run lint

0 comments on commit 5d774da

Please sign in to comment.