Skip to content

Commit

Permalink
ci: Add a meta job for the inspection workflow (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Sep 17, 2023
1 parent dc7eac5 commit fe3d29d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/inspection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,23 @@ jobs:

- name: "Run diagnosis"
run: "php bin/diagnose.php"

# This is a "trick", a meta task which does not change, and we can use in
# the protected branch rules as opposed to the tests one above which
# may change regularly.
validate-tests:
name: "Inspection status"
runs-on: "ubuntu-latest"
needs:
- "ubuntu-inspection"
- "windows-inspection"
- "osx-inspection"
if: "always()"
steps:
- name: "Successful run"
if: "${{ !(contains(needs.*.result, 'failure')) }}"
run: "exit 0"

- name: "Failing run"
if: "${{ contains(needs.*.result, 'failure') }}"
run: "exit 1"

0 comments on commit fe3d29d

Please sign in to comment.