Skip to content

Commit 674a3c2

Browse files
authored
Merge pull request #80 from wayofdev/feat/coverage
2 parents 0ea57a6 + 1864b22 commit 674a3c2

File tree

4 files changed

+243
-358
lines changed

4 files changed

+243
-358
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,23 @@ jobs:
5151
PHP_CS_FIXER_IGNORE_ENV: true
5252

5353
- name: 🧪 Execute phpunit tests
54-
run: make test
54+
uses: php-actions/phpunit@v3
55+
env:
56+
XDEBUG_MODE: coverage
57+
with:
58+
bootstrap: vendor/autoload.php
59+
configuration: phpunit.xml.dist
60+
php_extensions: xdebug
61+
args: tests --coverage-clover ./coverage.xml
5562

5663
- name: 📝 Run static analysis using phpstan
5764
run: make stan
5865

66+
- name: 📤 Upload coverage report to Codecov
67+
uses: codecov/codecov-action@v3
68+
with:
69+
token: ${{ secrets.CODECOV_TOKEN }}
70+
files: ./coverage.xml
71+
verbose: true
72+
5973
...

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"phpstan/phpstan-deprecation-rules": "^1.1.2",
2626
"phpstan/phpstan-phpunit": "^1.3.10",
2727
"phpstan/phpstan-strict-rules": "^1.5.0",
28-
"phpunit/phpunit": "^9.6.5",
28+
"phpunit/phpunit": "^10.0.14",
2929
"roave/security-advisories": "dev-latest"
3030
},
3131
"autoload": {

0 commit comments

Comments
 (0)