From 3eecb89caa194c885397821183a199ed74111df7 Mon Sep 17 00:00:00 2001 From: zirain Date: Wed, 11 Jun 2025 21:38:05 +0800 Subject: [PATCH] ci: add ci-checks Signed-off-by: zirain --- .github/workflows/build_and_test.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml index ded7ab0055..59a4ec54d6 100644 --- a/.github/workflows/build_and_test.yaml +++ b/.github/workflows/build_and_test.yaml @@ -265,3 +265,28 @@ jobs: run: | IMAGE_PULL_POLICY=Always OCI_REGISTRY=oci://docker.io/envoyproxy CHART_VERSION=v0.0.0-latest TAG=latest make helm-push IMAGE_PULL_POLICY=Always OCI_REGISTRY=oci://docker.io/envoyproxy CHART_VERSION=0.0.0-latest TAG=latest make helm-push + + # Aggregate all the required jobs and make it easier to customize CI required jobs + ci-checks: + runs-on: ubuntu-latest + needs: + - lint + - gen-check + - license-check + - coverage-test + - build + - conformance-test + - e2e-test + - benchmark-test + - resilience-test + - publish + # We need this to run always to force-fail (and not skip) if any needed + # job has failed. Otherwise, a skipped job will not fail the workflow. + if: always() + steps: + - run: | + echo "CI checks completed" + [ "${{ + contains(needs.*.result, 'failure') || + contains(needs.*.result, 'cancelled') + }}" == "false" ] || exit 1