Skip to content

Commit c0513d5

Browse files
committed
Connect Codecov
1 parent e04949a commit c0513d5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/php.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,9 @@ jobs:
3333
- name: Run test suite
3434
env:
3535
XDEBUG_MODE: coverage
36-
run: composer run-script test
36+
run: composer run-script test
37+
38+
- name: Upload coverage reports to Codecov
39+
uses: codecov/[email protected]
40+
with:
41+
token: ${{ secrets.CODECOV_TOKEN }}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
}
3232
},
3333
"scripts": {
34-
"test": "phpunit --coverage-text ."
34+
"test": "phpunit --coverage-clover coverage.xml ."
3535
}
3636
}

0 commit comments

Comments
 (0)