From 7c2a74e86ea4aff2b6a24316039b177fbd19cefd Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Mon, 13 May 2024 16:57:51 +0200 Subject: [PATCH] force failure 3 vs 2 --- .github/workflows/phpcs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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).