Skip to content

Commit e166c23

Browse files
committed
codecov
1 parent ddb92dc commit e166c23

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/continuous-integration.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919
cancel-in-progress: true
2020

2121
env:
22-
PHPUNIT_ARGS: "--coverage-xml=docs/coverage/"
22+
PHPUNIT_ARGS: "--coverage-clover=coverage.xml"
2323

2424
jobs:
2525
generate-ci-matrix:
@@ -39,3 +39,13 @@ jobs:
3939
glpi-version: "${{ matrix.glpi-version }}"
4040
php-version: "${{ matrix.php-version }}"
4141
db-image: "${{ matrix.db-image }}"
42+
coverage:
43+
name: "Code coverage"
44+
needs: "ci"
45+
uses: codecov/codecov-action@v3
46+
with:
47+
token: ${{ secrets.CODECOV_TOKEN }}
48+
file: ./coverage.xml
49+
flags: unittests
50+
name: codecov-umbrella
51+
fail_ci_if_error: true

0 commit comments

Comments
 (0)