Skip to content

Commit b0c57d7

Browse files
committedDec 17, 2024·
Add Codecov integration
1 parent 1dcf32d commit b0c57d7

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed
 

‎.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
/.gitattributes export-ignore
44
/.gitignore export-ignore
55
/.php-cs-fixer.dist.php export-ignore
6+
/codecov.yml export-ignore
67
/phpstan.neon.dist export-ignore
78
/phpunit.xml.dist export-ignore

‎.github/workflows/test-unit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
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)
155155
156156
- name: Upload coverage (only for coverage)
157-
if: env.LOG_COVERAGE && false # TODO
157+
if: env.LOG_COVERAGE
158158
uses: codecov/codecov-action@v5
159159
with:
160160
token: ${{ secrets.CODECOV_TOKEN }}

‎codecov.yml

+9
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)
Please sign in to comment.