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