diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index e21d40a9..67c7b082 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -56,3 +56,21 @@ jobs: - name: clear docker volumes if: ${{ always() }} run: dev/bin/docker-compose down --volumes + + + # This is a "trick", a meta task which does not change, and we can use in + # the protected branch rules as opposed to the individual tests which + # may change regularly. + validate-tests: + name: tests status + runs-on: ubuntu-latest + needs: [ tests ] + if: always() + steps: + - name: Successful run + if: ${{ !(contains(needs.*.result, 'failure')) }} + run: exit 0 + + - name: Failing run + if: ${{ contains(needs.*.result, 'failure') }} + run: exit 1 diff --git a/composer.json b/composer.json index acb20aca..19c7eb4d 100644 --- a/composer.json +++ b/composer.json @@ -40,10 +40,7 @@ "psr-4": { "League\\Bundle\\OAuth2ServerBundle\\Tests\\": "tests/" } }, "config": { - "sort-packages": true, - "allow-plugins": { - "bamarni/composer-bin-plugin": true - } + "sort-packages": true }, "extra": { "branch-alias": {