Skip to content

Commit

Permalink
Merge pull request #4 from farzai/add-coverage
Browse files Browse the repository at this point in the history
Add coverage report
  • Loading branch information
parsilver authored May 25, 2023
2 parents 1369ee3 + 88e0ae0 commit 8e57d49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, fileinfo
coverage: none
coverage: pcov

- name: Setup problem matchers
run: |
Expand All @@ -34,10 +34,10 @@ jobs:
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction

- name: Execute tests
run: vendor/bin/pest --coverage-clover=coverage.xml
run: vendor/bin/pest --coverage --coverage-clover=coverage.xml

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

0 comments on commit 8e57d49

Please sign in to comment.