Skip to content

Commit 8fcd5a0

Browse files
committed
Add Codecov integration
1 parent 48988b2 commit 8fcd5a0

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/test-unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
php -d opcache.enable_cli=1 vendor/bin/phpunit --exclude-group none $(if [ -n "$LOG_COVERAGE" ]; then echo --coverage-text; else echo --no-coverage; fi) --fail-on-warning --fail-on-risky $(if vendor/bin/phpunit --version | grep -q '^PHPUnit 9\.'; then echo -v; else echo --fail-on-notice --fail-on-deprecation --display-notices --display-deprecations --display-phpunit-deprecations --display-warnings --display-errors --display-incomplete --display-skipped; fi)
150150
151151
- name: Upload coverage (only for coverage)
152-
if: env.LOG_COVERAGE && false # TODO
152+
if: env.LOG_COVERAGE
153153
uses: codecov/codecov-action@v5
154154
with:
155155
token: ${{ secrets.CODECOV_TOKEN }}

codecov.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
comment: false
2+
coverage:
3+
status:
4+
project:
5+
default:
6+
target: auto
7+
threshold: 0.025
8+
patch: false
9+
changes: false

0 commit comments

Comments
 (0)