Skip to content

Commit b008441

Browse files
Update tests build workflow for GitHub Actions
1 parent ded0a49 commit b008441

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,18 @@ jobs:
4343
- name: Install dependencies
4444
run: composer update --no-progress --optimize-autoloader ${{ matrix.composer-flags }}
4545

46-
- name: Check Coding Stardard
47-
run: vendor/bin/phpcs
46+
- name: Check Coding Standard
47+
run: |
48+
if [ "${{ matrix.coverage }}" == "true" ]; then
49+
vendor/bin/phpcs
50+
fi
4851
4952
- name: Test with Phpunit
5053
run: |
5154
if [ "${{ !matrix.coverage }}" == "false" ]; then
5255
vendor/bin/phpunit --no-coverage
5356
fi
54-
if [ "${{ !matrix.coverage }}" == "true" ]; then
57+
if [ "${{ matrix.coverage }}" == "true" ]; then
5558
vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
5659
bash <(curl -s https://codecov.io/bash) -f coverage.clover
5760
fi

0 commit comments

Comments
 (0)