Update composer.yml

This commit is contained in:
alistair3149 2019-12-30 18:02:17 -05:00 committed by GitHub
parent bef0d67e6c
commit 592c68ae8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,9 +22,18 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Composer test
- name: Run Composer test
run: composer test
- name: Attempt to auto fix the issues
if: failure()
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