Skip to content

Commit

Permalink
Merge pull request #208 from phil-davis/sync-ci-yml
Browse files Browse the repository at this point in the history
sync ci.yml to match other repos
  • Loading branch information
phil-davis authored Nov 3, 2021
2 parents 4470814 + a84f6f5 commit 0aac08d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,20 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install Composer dependencies
- name: Install composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Code Analysis(PHP CS-Fixer)
- name: Code Analysis (PHP CS-Fixer)
if: matrix.code-analysis == 'yes'
run: php vendor/bin/php-cs-fixer fix --dry-run --diff

- name: Code Analysis(PHPStan)
- name: Code Analysis (PHPStan)
if: matrix.code-analysis == 'yes'
run: composer phpstan

- name: Test with phpunit
run: vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover clover.xml

- uses: codecov/codecov-action@v2
- name: Code Coverage
uses: codecov/codecov-action@v2
if: matrix.coverage != 'none'

0 comments on commit 0aac08d

Please sign in to comment.