Update composer.yml

This commit is contained in:
alistair3149 2019-12-30 18:01:42 -05:00 committed by GitHub
parent e097f8133b
commit d932e1bb25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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