Skip to content

Commit d102a62

Browse files
committed
x
1 parent d204541 commit d102a62

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0']
15+
coverage: ['pcov']
16+
cs-fixer: ['no']
17+
include:
18+
- php-versions: '7.1'
19+
coverage: 'none'
20+
cs-fixer: 'yes'
1521
steps:
1622
- name: Checkout
1723
uses: actions/checkout@v2
@@ -21,7 +27,7 @@ jobs:
2127
with:
2228
php-version: ${{ matrix.php-versions }}
2329
extensions: mbstring, dom, fileinfo, mysql, redis, opcache
24-
coverage: pcov
30+
coverage: ${{ matrix.coverage }}
2531
tools: composer
2632

2733
- name: Get composer cache directory
@@ -41,6 +47,7 @@ jobs:
4147
run: composer install --no-progress --prefer-dist --optimize-autoloader
4248

4349
- name: Code Analysis(PHP CS-Fixer)
50+
if: matrix.cs-fixer == 'yes'
4451
run: php vendor/bin/php-cs-fixer fix --dry-run --diff
4552

4653
- name: Code Analysis(PHPStan)
@@ -50,3 +57,4 @@ jobs:
5057
run: vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover clover.xml
5158

5259
- uses: codecov/codecov-action@v2
60+
if: matrix.coverage != 'none'

0 commit comments

Comments
 (0)