From f75af62ac4e7216055c4402214d553ff02e6c0cb Mon Sep 17 00:00:00 2001 From: Nicolas Joubert Date: Fri, 6 Nov 2026 17:21:01 +0100 Subject: [PATCH] #125 - Add the Tests passed and Quality passed jobs, to require in the protection of main Co-Authored-By: Claude Opus 5.5 --- .github/workflows/quality.yml | 11 +++++++++++ .github/workflows/test.yml | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index b7a8a1f..f7a0c6a 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -88,3 +88,14 @@ jobs: run: bin/console cache:warmup --env=prod --no-optional-warmers - name: Warm up the prod cache run: bin/console cache:warmup --env=prod + + # Single check to require in the branch protection of main: its name does not depend on the matrix + quality-passed: + name: Quality passed + if: always() + needs: [phpstan, php-cs-fixer, rector, lint] + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Check the result of the jobs + run: test "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}" = false diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 71a0baa..8ce0b33 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -103,3 +103,14 @@ jobs: # uses: codecov/codecov-action@v4 # with: # files: build/logs/clover.xml + + # Single check to require in the branch protection of main: its name does not depend on the matrix + tests-passed: + name: Tests passed + if: always() + needs: [test] + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Check the result of the jobs + run: test "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}" = false