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 2a49151 commit 6fc179f
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 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 @@ -39,12 +36,21 @@ jobs:
- name: Run tests
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
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
flag-name: run-${{ join(matrix.*, '-') }}
parallel: true

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

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

0 comments on commit 6fc179f

Please sign in to comment.