Skip to content

Commit

Permalink
test unitconfig actions
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardokum committed Mar 20, 2024
1 parent 5777989 commit 85c56f3
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ jobs:
testbench: 5.*
- laravel: 6.*
testbench: 4.*
- php: 8.2
unitconfig: phpunit_gt_81.xml
- php: 8.1
unitconfig: phpunit_gt_81.xml
- php: 8.0
unitconfig: phpunit.xml
- php: 7.4
unitconfig: phpunit.xml
exclude:
- laravel: 6.*
php: 8
Expand Down Expand Up @@ -96,4 +104,5 @@ jobs:
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Run tests
run: "vendor/bin/phpunit -c phpunit.xml --coverage-clover=coverage.clover"
run: |
vendor/bin/phpunit -c ${{ matrix.unitconfig }} --coverage-clover=coverage.clover
28 changes: 28 additions & 0 deletions phpunit_gt_81.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="true" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd">
<coverage>
<report>
<clover outputFile="tests/_reports/logs/clover.xml"/>
<html outputDirectory="tests/_reports/coverage" lowUpperBound="35" highLowerBound="70"/>
</report>
</coverage>
<testsuites>
<testsuite name="Application Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<logging>
<testdoxText outputFile="tests/_reports/testdox/executed.txt"/>
</logging>
<php>
<env name="APP_ENV" value="testing"/>
</php>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
<exclude>
<directory suffix=".php">./src/Boleto/Render/view</directory>
</exclude>
</source>
</phpunit>

0 comments on commit 85c56f3

Please sign in to comment.