Skip to content

Commit 6fc179f

Browse files
committed
Replace php-coveralls with official Coveralls GH action
1 parent 2a49151 commit 6fc179f

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

.github/workflows/tests.yaml

Lines changed: 15 additions & 9 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
@@ -39,12 +36,21 @@ jobs:
3936
- name: Run tests
4037
run: vendor/bin/phpunit --coverage-clover coverage-clover.xml
4138

42-
- 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
39+
- name: Coveralls Parallel
40+
uses: coverallsapp/github-action@v2
41+
with:
42+
flag-name: run-${{ join(matrix.*, '-') }}
43+
parallel: true
44+
45+
tests-finished:
46+
needs: tests
47+
if: ${{ always() }}
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Coveralls Finished
51+
uses: coverallsapp/github-action@v2
52+
with:
53+
parallel-finished: true
4854

4955
codestyle:
5056
name: "Code style and static analysis"

0 commit comments

Comments
 (0)