diff --git a/.github/workflows/test-requirements-check.yml b/.github/workflows/test-requirements-check.yml index 9fd58d9647..c0e6c0b3ff 100644 --- a/.github/workflows/test-requirements-check.yml +++ b/.github/workflows/test-requirements-check.yml @@ -197,9 +197,9 @@ jobs: run: php ${{ matrix.cmd }}.phar --version - name: Check the result of a successful test against expectation - if: ${{ steps.check.outcome == 'success' && matrix.expect == 'fail' }} + if: ${{ steps.check.outcome == 'success' && matrix.expect != 'fail' }} run: exit 1 - name: Check the result of a failed test against expectation - if: ${{ steps.check.outcome != 'success' && matrix.expect == 'success' }} + if: ${{ steps.check.outcome != 'success' && matrix.expect != 'success' }} run: exit 1