From 1488d90edb7f85d5ac99d6135a792a8d35688300 Mon Sep 17 00:00:00 2001 From: Peter Nied Date: Wed, 19 Jun 2024 19:06:02 +0000 Subject: [PATCH] Add job that passed when all other CI jobs have completed 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 --- .github/workflows/CI.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 29d665f36..8c2eb9e44 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -167,4 +167,17 @@ jobs: --exclude-mail fail: true env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file + 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