Skip to content

Commit a4cb777

Browse files
committed
Add coverage report to github.ci
1 parent f6f1123 commit a4cb777

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,14 @@ jobs:
4545
composer-options: "--prefer-dist --no-progress"
4646

4747
- name: Run tests
48-
run: composer run test
48+
run: composer run test
49+
50+
- name: Coverage report
51+
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-clover coverage.xml
52+
53+
- name: Upload coverage reports to Codecov
54+
run: |
55+
# Replace `linux` below with the appropriate OS
56+
curl -Os https://uploader.codecov.io/latest/linux/codecov
57+
chmod +x codecov
58+
./codecov -t ${CODECOV_TOKEN}

0 commit comments

Comments
 (0)