Skip to content

Commit 85c56f3

Browse files
committed
test unitconfig actions
1 parent 5777989 commit 85c56f3

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ jobs:
3131
testbench: 5.*
3232
- laravel: 6.*
3333
testbench: 4.*
34+
- php: 8.2
35+
unitconfig: phpunit_gt_81.xml
36+
- php: 8.1
37+
unitconfig: phpunit_gt_81.xml
38+
- php: 8.0
39+
unitconfig: phpunit.xml
40+
- php: 7.4
41+
unitconfig: phpunit.xml
3442
exclude:
3543
- laravel: 6.*
3644
php: 8
@@ -96,4 +104,5 @@ jobs:
96104
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
97105
98106
- name: Run tests
99-
run: "vendor/bin/phpunit -c phpunit.xml --coverage-clover=coverage.clover"
107+
run: |
108+
vendor/bin/phpunit -c ${{ matrix.unitconfig }} --coverage-clover=coverage.clover

phpunit_gt_81.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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">
3+
<coverage>
4+
<report>
5+
<clover outputFile="tests/_reports/logs/clover.xml"/>
6+
<html outputDirectory="tests/_reports/coverage" lowUpperBound="35" highLowerBound="70"/>
7+
</report>
8+
</coverage>
9+
<testsuites>
10+
<testsuite name="Application Test Suite">
11+
<directory suffix="Test.php">./tests</directory>
12+
</testsuite>
13+
</testsuites>
14+
<logging>
15+
<testdoxText outputFile="tests/_reports/testdox/executed.txt"/>
16+
</logging>
17+
<php>
18+
<env name="APP_ENV" value="testing"/>
19+
</php>
20+
<source>
21+
<include>
22+
<directory suffix=".php">./src</directory>
23+
</include>
24+
<exclude>
25+
<directory suffix=".php">./src/Boleto/Render/view</directory>
26+
</exclude>
27+
</source>
28+
</phpunit>

0 commit comments

Comments
 (0)