Skip to content

Commit

Permalink
Configure codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
smnandre committed May 28, 2024
1 parent 06b3f30 commit ea67577
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ jobs:
- name: "PHP: setup ${{ matrix.php-version }}"
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
php-version: ${{ matrix.php-version }}
coverage: xdebug
ini-values: xdebug.mode=coverage
- name: "PHP: php matcher"
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
Expand All @@ -119,10 +121,10 @@ jobs:
- name: "Composer: install"
run: composer install --prefer-dist --no-progress --no-suggest
- name: "PHPUnit: version"
run: vendor/bin/phpunit --version
run: ./vendor/bin/phpunit --version
- name: "PHPUnit: tests"
run: vendor/bin/phpunit #--coverage-text --coverage-clover=coverage.xml
# - name: "Codecov: upload"
# uses: codecov/codecov-action@v4.0.1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
run: ./vendor/bin/phpunit --coverage-text --coverage-clover coverage.xml
- name: "Codecov: upload"
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit ea67577

Please sign in to comment.