Skip to content

Commit 388f8d0

Browse files
committed
Replace php-coveralls with official Coveralls GH action
1 parent 7af709f commit 388f8d0

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.coveralls.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/tests.yaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
schedule:
77
- cron: '0 3 * * *'
88

9-
env:
10-
COVERALLS_SERVICE_NUMBER: ${{ github.run_id }}-${{ github.run_attempt }}
11-
129
jobs:
1310
tests:
1411
runs-on: ubuntu-latest
@@ -40,11 +37,21 @@ jobs:
4037
run: vendor/bin/phpunit --coverage-clover coverage-clover.xml
4138

4239
- name: Submit coverage to Coveralls
43-
env:
44-
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
run: |
46-
composer global require --no-progress --dev php-coveralls/php-coveralls guzzlehttp/guzzle:^6.5
47-
~/.composer/vendor/bin/php-coveralls -v
40+
uses: coverallsapp/github-action@v2
41+
with:
42+
flag-name: ${{ github.job }}-PHP-${{ matrix.php-version }} ${{ matrix.dependencies }}
43+
file: coverage-clover.xml
44+
parallel: true
45+
46+
tests-finished:
47+
needs: tests
48+
if: ${{ always() }}
49+
runs-on: ubuntu-latest
50+
steps:
51+
- name: Notify Coveralls of finished builds
52+
uses: coverallsapp/github-action@v2
53+
with:
54+
parallel-finished: true
4855

4956
codestyle:
5057
name: "Code style and static analysis"

0 commit comments

Comments
 (0)