Skip to content

Commit

Permalink
ci.yml : adding codecov to the actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rayanlevert committed Dec 1, 2023
1 parent 4615a14 commit 5c5d895
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,15 @@ 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.xml

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

0 comments on commit 5c5d895

Please sign in to comment.