Skip to content

Replace php-coveralls with official Coveralls GH action #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .coveralls.yml

This file was deleted.

23 changes: 15 additions & 8 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
schedule:
- cron: '0 3 * * *'

env:
COVERALLS_SERVICE_NUMBER: ${{ github.run_id }}-${{ github.run_attempt }}

jobs:
tests:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -40,11 +37,21 @@ jobs:
run: vendor/bin/phpunit --coverage-clover coverage-clover.xml

- name: Submit coverage to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require --no-progress --dev php-coveralls/php-coveralls guzzlehttp/guzzle:^6.5
~/.composer/vendor/bin/php-coveralls -v
uses: coverallsapp/github-action@v2
with:
flag-name: ${{ github.job }}-PHP-${{ matrix.php-version }} ${{ matrix.dependencies }}
file: coverage-clover.xml
parallel: true

tests-finished:
needs: tests
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Notify Coveralls of finished builds
uses: coverallsapp/github-action@v2
with:
parallel-finished: true

codestyle:
name: "Code style and static analysis"
Expand Down
Loading