Skip to content

Commit

Permalink
Replace php-coveralls with official Coveralls GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Apr 18, 2024
1 parent 7af709f commit 388f8d0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .coveralls.yml

This file was deleted.

23 changes: 15 additions & 8 deletions .github/workflows/tests.yaml
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

0 comments on commit 388f8d0

Please sign in to comment.