Skip to content

Commit

Permalink
Make Coveralls merge coverage from all jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Feb 6, 2021
1 parent 99fef47 commit 28036b7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
- name: Submit coverage to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL: true
COVERALLS_FLAG_NAME: ${{ github.job }}-PHP-${{ matrix.php-version }} ${{ matrix.dependencies }}
NO_COLOR: 'true'
run: |
composer global require php-coveralls/php-coveralls
Expand Down Expand Up @@ -86,7 +88,10 @@ jobs:
- name: Submit coverage to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL: true
COVERALLS_FLAG_NAME: ${{ github.job }}
NO_COLOR: 'true'

run: |
composer global require php-coveralls/php-coveralls
~/.composer/vendor/bin/php-coveralls --coverage_clover=./src-tests/logs/clover.xml --json_path=./src-tests/logs/coveralls-upload.json -v
Expand All @@ -96,6 +101,17 @@ jobs:
run: |
[ -r selenium-server.log ] && cat selenium-server.log
finish-tests:
name: Tests finished
needs: [unit-tests, integration-tests]
runs-on: ubuntu-latest
steps:
- name: Notify Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true

codestyle:
name: "Code style and static analysis"
runs-on: ubuntu-latest
Expand Down

0 comments on commit 28036b7

Please sign in to comment.