Skip to content
This repository was archived by the owner on Apr 23, 2023. It is now read-only.

Commit 74ffbd5

Browse files
committed
Add Coveralls to GitHub Actions workflow
Based on: https://github.com/php-coveralls/php-coveralls#github-actions
1 parent 53cd07f commit 74ffbd5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/phpunit.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
- uses: shivammathur/setup-php@v2
2424
with:
2525
php-version: ${{ matrix.php }}
26-
coverage: none
2726
extensions: gmp, bcmath
2827
tools: composer
2928
- uses: actions/checkout@v2
@@ -32,4 +31,10 @@ jobs:
3231
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
3332
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
3433
- run: composer install
35-
- run: vendor/bin/phpunit
34+
- run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
35+
- name: Upload coverage results to Coveralls
36+
env:
37+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
run: |
39+
composer global require php-coveralls/php-coveralls
40+
php-coveralls --coverage_clover=build/logs/clover.xml -v

0 commit comments

Comments
 (0)