Skip to content

Commit

Permalink
Add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
JanisVepris committed Feb 14, 2024
1 parent 33f6cc3 commit 8887911
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: none
coverage: pcov

- name: Validate composer.json and composer.lock
run: composer validate --strict
Expand All @@ -41,8 +41,14 @@ jobs:
- name: Check style
run: composer run-script cs

- name: Run unit tests
run: composer run-script test
- name: Run tests
run: php ./vendor/bin/phpunit --coverage-clover coverage.xml

- name: Static analysis
run: composer run-script stan

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
env:
token: ${{ secrets.CODECOV_TOKEN }}
slug: JanisVepris/gs1-decoder

0 comments on commit 8887911

Please sign in to comment.