Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
- uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
coverage: pcov
- uses: actions/checkout@v3
- name: Cache Composer packages
id: composer-cache
Expand All @@ -51,6 +52,11 @@ jobs:
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Execute tests (Unit and Feature tests) via PHPUnit
run: vendor/bin/phpunit
- name: Store the artifact
uses: actions/upload-artifact@v3
with:
name: html-coverage
path: html-coverage
php-cs:
runs-on: ubuntu-latest
steps:
Expand Down
15 changes: 15 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@
</testsuite>
</testsuites>

<coverage
cacheDirectory="."
includeUncoveredFiles="true"
processUncoveredFiles="true"
pathCoverage="false"
ignoreDeprecatedCodeUnits="true"
disableCodeCoverageIgnore="true">
<include>
<directory suffix=".php">src</directory>
</include>
<report>
<html outputDirectory="html-coverage" lowUpperBound="50" highLowerBound="90"/>
</report>
</coverage>

<php>
<ini name="date.timezone" value="UTC"/>
</php>
Expand Down