Skip to content

Commit 6e011fe

Browse files
jrfnlgrogy
authored andcommitted
GH Actions: switch to Coveralls action runner to upload reports
Simplify the code coverage workflow by removing the dependency on the `php-coveralls/php-coveralls` package and switching to the `coverallsapp/github-action` action runner, which, as of the release of the [0.6.5 version of the Coverage Reporter](https://github.com/coverallsapp/coverage-reporter/releases/tag/v0.6.5) now natively supports the Clover format.
1 parent 708b34d commit 6e011fe

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,9 @@ jobs:
105105
- name: Run the unit tests with code coverage
106106
run: composer coverage
107107

108-
# Global install is used to prevent a conflict with the local composer.lock.
109-
- name: Install Coveralls
110-
if: ${{ success() }}
111-
run: composer global require php-coveralls/php-coveralls:"^2.6.0" --no-interaction
112-
113108
- name: Upload coverage results to Coveralls
114109
if: ${{ success() }}
115-
env:
116-
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
117-
run: php-coveralls -v -x build/logs/clover.xml
110+
uses: coverallsapp/github-action@v2
111+
with:
112+
format: clover
113+
file: build/logs/clover.xml

0 commit comments

Comments
 (0)