Skip to content

Commit

Permalink
chore(ci) add passed job (#846)
Browse files Browse the repository at this point in the history
Add a CI job that aggregates all the required jobs for branch
protection rules.
  • Loading branch information
rainest authored Jul 25, 2023
1 parent 85e9133 commit cc82185
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/main-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,18 @@ jobs:

- name: cleanup integration tests (cleanup)
run: ./scripts/test-env.sh cleanup

# Workaround to allow checking the matrix tests as required tests without adding the individual cases
# Ref: https://github.com/orgs/community/discussions/26822#discussioncomment-3305794
passed:
runs-on: ubuntu-latest
needs:
- lint
- lint-test
- integration-test
if: always()
steps:
- if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: |
echo "Some jobs failed or were cancelled."
exit 1

0 comments on commit cc82185

Please sign in to comment.