diff --git a/.github/workflows/composer.yml b/.github/workflows/composer.yml index 3356402f..e85f65b7 100644 --- a/.github/workflows/composer.yml +++ b/.github/workflows/composer.yml @@ -25,11 +25,14 @@ jobs: - name: Run Composer test run: composer test - - name: Attempt to auto fix the issue and recheck + - name: Attempt to auto fix the issues if: failure() - run: | - composer fix - composer test + run: composer fix + + # Use failure() because phpcbf always return a failure + - name: Re-test if the issues are resolved + if: failure() + run: composer test # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" # Docs: https://getcomposer.org/doc/articles/scripts.md