Skip to content

Commit 713926d

Browse files
committed
coverage added
1 parent 51c4f99 commit 713926d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ jobs:
3939
- name: Execute PHPcs
4040
run: vendor/bin/phpcs --standard=psr2 src/
4141

42-
- name: Run tests and collect coverage
43-
run: vendor/bin/phpunit --coverage-clover coverage.xml
44-
- name: Upload coverage to Codecov
45-
uses: codecov/codecov-action@v4
46-
env:
47-
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
42+
- name: Execute PHPUnit
43+
run: vendor/bin/phpunit --coverage-clover=coverage.xml
44+
- name: Upload coverage to Codecov
45+
uses: codecov/codecov-action@v3
46+
with:
47+
files: ./coverage.xml
48+
flags: unittests
49+
name: codecov-umbrella
50+
fail_ci_if_error: true

0 commit comments

Comments
 (0)