Skip to content

Commit

Permalink
Add job that passed when all other CI jobs have completed
Browse files Browse the repository at this point in the history
GitHub allows 'requiring' a job to be run before a pull request can be
merged, by adding a new job that 'needs' all the other ci jobs, this job
will run last and only if they all pass.

After this is merged someone from the admin team can update the repo
settings to enforce this requirement.

Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Jun 19, 2024
1 parent 9492a9a commit 1488d90
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,17 @@ jobs:
--exclude-mail
fail: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

all-ci-checks-pass:
needs:
- cdk-tests
- console-library-tests
- gradle-tests
- link-checker
- python-e2e-tests
- python-lint
runs-on: ubuntu-latest
steps:
- run: |
echo '## :heavy_check_mark: All continous integration checks pass' >> $GITHUB_STEP_SUMMARY

0 comments on commit 1488d90

Please sign in to comment.