Skip to content

Commit

Permalink
Fixed phpcs issues with PHP 8 on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
divineniiquaye committed Aug 19, 2020
1 parent 7b59e68 commit 28bc205
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ jobs:
- name: Install dependencies
run: composer update --no-progress --optimize-autoloader ${{ matrix.composer-flags }}

- name: Check Coding Stardard
run: vendor/bin/phpcs
- name: Check Coding Standard
run: if [ "${{ matrix.coverage }}" == "true" ]; then vendor/bin/phpcs fi

- name: Test with Phpunit
run: |
if [ "${{ !matrix.coverage }}" == "false" ]; then
if [ "${{ matrix.coverage }}" == "false" ]; then
vendor/bin/phpunit --no-coverage
fi
if [ "${{ !matrix.coverage }}" == "true" ]; then
if [ "${{ matrix.coverage }}" == "true" ]; then
vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
bash <(curl -s https://codecov.io/bash) -f coverage.clover
fi
Expand Down

0 comments on commit 28bc205

Please sign in to comment.