Skip to content

Commit 4d93e09

Browse files
franmomuphansys
authored andcommitted
Add code coverage
1 parent fd386a0 commit 4d93e09

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
with:
5050
php-version: "${{ matrix.php-version }}"
5151
extensions: mongodb
52+
coverage: "pcov"
5253

5354
- name: "Restrict DBAL version"
5455
if: "${{ matrix.dbal-version }}"
@@ -60,7 +61,12 @@ jobs:
6061
dependency-versions: "${{ matrix.deps }}"
6162

6263
- name: "Run PHPUnit"
63-
run: "bin/phpunit -c tests"
64+
run: "bin/phpunit -c tests --coverage-clover=coverage.xml"
65+
66+
- name: "Send coverage to Codecov"
67+
uses: "codecov/codecov-action@v2"
68+
with:
69+
file: "coverage.xml"
6470

6571
lint-doctrine-xml-schema:
6672
name: Lint Doctrine XML schemas

0 commit comments

Comments
 (0)