diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index a16e98f..e7a0e5a 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -67,7 +67,7 @@ jobs: run: | # There is one failure (exit with error 2, because some are fixable). vendor/bin/phpcs --standard=moodle moodle/Tests/fixtures/integration_test_ci.php | tee output.txt - [[ "${PIPESTATUS[0]}" = 2 ]] || echo "Error: Expected 2, got ${PIPESTATUS[0]}" + [[ "${PIPESTATUS[0]}" = 3 ]] || echo "Error: Expected 3, got ${PIPESTATUS[0]}" grep -q "PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY" output.txt # The failure is fixed (exit with error 1, because all fixable ones were fixed).