Skip to content

Commit

Permalink
Merge pull request #8 from rayanlevert/feature/codecov
Browse files Browse the repository at this point in the history
Pushing code coverage to codecov.io
  • Loading branch information
rayanlevert authored Dec 1, 2023
2 parents 4615a14 + adb78e9 commit a11f71c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,17 @@ jobs:
php-version: ${{ matrix.php-version }}
extensions: mbstring
tools: none
coverage: xdebug

- name: Install dependencies with Composer
run: composer install --no-ansi --no-interaction --no-progress

- name: Run tests with PHPUnit
run: vendor/bin/phpunit
run: vendor/bin/phpunit --coverage-clover coverage-${{ matrix.php-version }}.xml

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
files: coverage-*.xml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit a11f71c

Please sign in to comment.