From 48dc2b0d90c64fb1e9fbd1a64cc87f089ca9081e Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Thu, 1 Jun 2023 20:35:38 +0200 Subject: [PATCH] CICD: Add `all-jobs` job This opens up future possibilities: * GitHub's auto-merge feature that merges a PR once CI passes * Auto-merge of dependabot PRs that pass CI But before we do any of that we need to have this new job active for a while to see that it works. --- .github/workflows/CICD.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index f43fd047..7fa2c749 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -14,6 +14,23 @@ on: - '*' jobs: + all-jobs: + if: always() # Otherwise this job is skipped if the matrix job fails + name: all-jobs + runs-on: ubuntu-latest + needs: + - crate_metadata + - ensure_cargo_fmt + - min_version + - license_checks + - test_with_new_syntaxes_and_themes + - test_with_system_config + - documentation + - cargo-audit + - build + steps: + - run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}' + crate_metadata: name: Extract crate metadata runs-on: ubuntu-latest