Skip to content

Commit

Permalink
Merge pull request #605 from tienvx/code-coverage
Browse files Browse the repository at this point in the history
ci: Upload code coverage to coveralls
  • Loading branch information
tienvx authored May 13, 2024
2 parents 9dfeafc + f8844bc commit db365b0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,20 @@ jobs:
run: vendor/bin/phpunit --testsuite unit
env:
PACT_DO_NOT_TRACK: true

- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
flag-name: ${{ matrix.php }}-${{ matrix.dependencies }}
parallel: true
file: test_results/reports/test_coverage_results.xml

finish:
needs: unit
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<!-- Please use absolute URLs for all links as the content of this page is synced to docs.pact.io -->

![Code Analysis & Test](https://github.com/pact-foundation/pact-php/actions/workflows/build.yml/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/pact-foundation/pact-php/badge.svg?branch=HEAD)](https://coveralls.io/github/pact-foundation/pact-php?branch=HEAD)
![Compatibility Suite](https://github.com/pact-foundation/pact-php/actions/workflows/compatibility-suite.yml/badge.svg)
[![Packagist](https://img.shields.io/packagist/v/pact-foundation/pact-php?style=flat-square)](https://packagist.org/packages/pact-foundation/pact-php)

Expand Down

0 comments on commit db365b0

Please sign in to comment.