Skip to content

Commit 20faaf4

Browse files
authored
Make workflow simpler (#326)
1 parent 4b425fd commit 20faaf4

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,13 @@ jobs:
4242
restore-keys: ${{ runner.os }}-composer-
4343
- name: Install dependencies
4444
run: composer update $DEFAULT_COMPOSER_FLAGS
45-
- name: PHP Unit tests for PHP 7.1
45+
- name: Run unit tests with coverage
4646
run: vendor/bin/phpunit --verbose --coverage-clover=coverage.clover --colors=always
4747
if: matrix.php == '7.1'
48-
- name: PHP Unit tests for PHP >= 7.2
48+
- name: Run unit tests without coverage
4949
run: vendor/bin/phpunit --verbose --colors=always
50-
if: matrix.php >= '7.2'
51-
- name: PHP Unit tests for PHP <= 7.0
52-
run: vendor/bin/phpunit --verbose --colors=always
53-
if: matrix.php <= '7.0'
54-
- name: Code coverage
50+
if: matrix.php != '7.1'
51+
- name: Upload code coverage
5552
run: |
5653
wget https://scrutinizer-ci.com/ocular.phar
5754
php ocular.phar code-coverage:upload --format=php-clover coverage.clover

0 commit comments

Comments
 (0)