Skip to content

Commit 8e9fe8b

Browse files
committed
Tweak Coveralls
Coveralls recommends using an "official integration" of their product with Github. Also, allow the upload to fail without causing the whole coverage step to fail - there have been some recent problems which they are still working on. I may allow the step to fail once they are done with their changes.
1 parent e3cac6f commit 8e9fe8b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,12 @@ jobs:
254254
255255
- name: Upload coverage results to Coveralls
256256
env:
257-
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
258-
run: |
259-
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.4.3/php-coveralls.phar
260-
chmod +x php-coveralls.phar
261-
php php-coveralls.phar --coverage_clover=build/clover.xml --json_path=build/coveralls-upload.json -vvv
257+
FAILURE_ACTION: "${{ true }}"
258+
uses: coverallsapp/github-action@v2
259+
with:
260+
github-token: ${{ secrets.GITHUB_TOKEN }}
261+
file: build/clover.xml
262+
format: clover
262263

263264
release:
264265
permissions:

0 commit comments

Comments
 (0)