mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-21 21:50:59 -05:00
ci: check for skipped and cancelled matrix jobs (#5840)
- Always run the job to check if any job of the test matrix failed. - Check if any job of the test matrix was skipped or cancelled, and not just failed.
This commit is contained in:
parent
aa390de227
commit
32a200b72a
1 changed files with 3 additions and 2 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
@ -258,6 +258,7 @@ jobs:
|
|||
# having to select each individual job that dynamically add to the test matrix.
|
||||
test-success-placeholder:
|
||||
name: Check if all the tests passed
|
||||
if: ${{ always() }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
|
@ -266,10 +267,10 @@ jobs:
|
|||
- test-local-action
|
||||
steps:
|
||||
- name: Test suite success
|
||||
if: ${{ !(contains(needs.*.result, 'failure')) }}
|
||||
if: ${{ !(contains(needs.*.result, 'failure')) && !contains(needs.*.result, 'cancelled') && !contains(needs.*.result, 'skipped') }}
|
||||
run: exit 0
|
||||
- name: Test suite failures
|
||||
if: ${{ contains(needs.*.result, 'failure') }}
|
||||
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}
|
||||
run: exit 1
|
||||
|
||||
preview-release-notes:
|
||||
|
|
Loading…
Reference in a new issue