Added codecov to phpunit action

This commit is contained in:
Constantin Graf
2024-04-15 17:12:04 +02:00
parent 9cab386100
commit 0b564e1371

View File

@@ -29,7 +29,7 @@ jobs:
with:
php-version: '8.3'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
coverage: none
coverage: pcov
- name: "Run composer install"
run: composer install -n --prefer-dist
@@ -51,4 +51,10 @@ jobs:
php artisan passport:keys
- name: "Run PHPUnit in parallel"
run: composer ptest
run: php artisan test --parallel --stop-on-failure --coverage-text --coverage-clover=coverage.xml
- name: "Upload coverage reports to Codecov"
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: solidtime-io/solidtime