Merge pull request #2963 from semantic-release/always-test

This commit is contained in:
Matt Travi 2023-09-18 07:33:49 -05:00 committed by GitHub
commit 2822fbee5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,10 @@ on:
permissions:
contents: read # to fetch code (actions/checkout)
env:
FORCE_COLOR: 1
NPM_CONFIG_COLOR: always
jobs:
test_matrix:
strategy:
@ -46,6 +50,7 @@ jobs:
test:
runs-on: ubuntu-latest
needs: test_matrix
if: always()
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
@ -55,3 +60,9 @@ jobs:
- run: npm clean-install
- run: npm audit signatures
- run: npm run lint
- name: All matrix versions passed
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Some matrix version failed
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1