mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 06:01:05 -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.
|
# having to select each individual job that dynamically add to the test matrix.
|
||||||
test-success-placeholder:
|
test-success-placeholder:
|
||||||
name: Check if all the tests passed
|
name: Check if all the tests passed
|
||||||
|
if: ${{ always() }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
@ -266,10 +267,10 @@ jobs:
|
||||||
- test-local-action
|
- test-local-action
|
||||||
steps:
|
steps:
|
||||||
- name: Test suite success
|
- 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
|
run: exit 0
|
||||||
- name: Test suite failures
|
- 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
|
run: exit 1
|
||||||
|
|
||||||
preview-release-notes:
|
preview-release-notes:
|
||||||
|
|
Loading…
Reference in a new issue