Skip to content

Commit

Permalink
Add config
Browse files Browse the repository at this point in the history
  • Loading branch information
Joppe de Cuyper committed Apr 4, 2023
1 parent 7c71316 commit 6be8f25
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ jobs:
- uses: php-actions/composer@v6
- name: PHPUnit Tests
uses: php-actions/phpunit@master
env:
APP_ENV: test
with:
bootstrap: vendor/autoload.php
configuration: tests/phpunit.xml
configuration: phpunit.xml
args: --coverage-text
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
.idea/
.php-cs-fixer.cache
composer.lock
phpunit.xml
scripts/.env
18 changes: 18 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">../../src</directory>
</include>
<report>
<html outputDirectory="./_coverage" lowUpperBound="35" highLowerBound="70"/>
<text outputFile="php://stdout" showUncoveredFiles="true"/>
</report>
</coverage>
<testsuites>
<testsuite name="main">
<directory suffix="Test.php">.</directory>
</testsuite>
</testsuites>
<logging/>
</phpunit>

0 comments on commit 6be8f25

Please sign in to comment.