We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f528b9 commit e1624daCopy full SHA for e1624da
.github/workflows/tests.yaml
@@ -25,10 +25,17 @@ jobs:
25
with:
26
php-version: ${{ matrix.php }}
27
extensions: redis
28
- coverage: none
+ coverage: ${{ matrix.php == '8.4' && 'pcov' || 'none' }}
29
30
- name: Install dependencies
31
run: composer install --no-interaction --prefer-dist --ignore-platform-req=ext-zookeeper
32
33
- name: Run tests
34
- run: vendor/bin/phpunit
+ run: vendor/bin/phpunit ${{ matrix.php == '8.4' && '--coverage-clover clover.xml' || '' }}
35
+
36
+ - name: Upload coverage to Codacy
37
+ if: matrix.php == '8.4'
38
+ uses: codacy/codacy-coverage-reporter-action@v1
39
+ with:
40
+ project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
41
+ coverage-reports: clover.xml
0 commit comments