Skip to content
Merged
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
48 changes: 47 additions & 1 deletion .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,89 @@ jobs:
- php: 8.1
laravel: 10.*
testbench: 8.*
phpunit-config: 'phpunit-10.xml'
composer-flag: '--prefer-stable'
- php: 8.2
laravel: 10.*
testbench: 8.*
phpunit-config: 'phpunit-10.xml'
composer-flag: '--prefer-stable'
- php: 8.3
laravel: 10.*
testbench: 8.*
phpunit-config: 'phpunit-10.xml'
composer-flag: '--prefer-stable'
- php: 8.1
laravel: 10.*
testbench: 8.*
phpunit-config: 'phpunit-10.xml'
composer-flag: '--prefer-lowest'
- php: 8.2
laravel: 10.*
testbench: 8.*
phpunit-config: 'phpunit-10.xml'
composer-flag: '--prefer-lowest'
- php: 8.3
laravel: 10.*
testbench: 8.*
phpunit-config: 'phpunit-10.xml'
composer-flag: '--prefer-lowest'
# Laravel 11.*
- php: 8.2
laravel: 11.*
testbench: 9.*
phpunit-config: 'phpunit.xml'
composer-flag: '--prefer-stable'
- php: 8.3
laravel: 11.*
testbench: 9.*
phpunit-config: 'phpunit.xml'
composer-flag: '--prefer-stable'
- php: 8.2
laravel: 11.*
testbench: 9.*
phpunit-config: 'phpunit.xml'
composer-flag: '--prefer-lowest'
- php: 8.2
laravel: 11.*
testbench: 9.*
phpunit-config: 'phpunit.xml'
composer-flag: '--prefer-lowest'
- php: 8.4
laravel: 11.*
testbench: 9.*
phpunit-config: 'phpunit.xml'
composer-flag: '--prefer-stable'
# Laravel 12.*
- php: 8.2
laravel: 12.*
testbench: 10.*
phpunit-config: 'phpunit.xml'
composer-flag: '--prefer-stable'
- php: 8.3
laravel: 12.*
testbench: 10.*
phpunit-config: 'phpunit.xml'
composer-flag: '--prefer-stable'
- php: 8.4
laravel: 12.*
testbench: 10.*
phpunit-config: 'phpunit.xml'
composer-flag: '--prefer-stable'
- php: 8.2
laravel: 12.*
testbench: 10.*
phpunit-config: 'phpunit.xml'
composer-flag: '--prefer-lowest'
- php: 8.3
laravel: 12.*
testbench: 10.*
phpunit-config: 'phpunit.xml'
composer-flag: '--prefer-lowest'
- php: 8.4
laravel: 12.*
testbench: 10.*
phpunit-config: 'phpunit.xml'
composer-flag: '--prefer-lowest'
runs-on: ubuntu-latest

Expand All @@ -68,7 +114,7 @@ jobs:
run: composer update ${{ matrix.composer-flag }} --prefer-dist --no-interaction

- name: Run PHPUnit
run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
run: XDEBUG_MODE=coverage vendor/bin/phpunit --config="${{ matrix.phpunit-config }}" --coverage-text --coverage-clover=coverage.xml

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
Expand Down
19 changes: 19 additions & 0 deletions phpunit-10.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false"
colors="true" processIsolation="false" stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache"
backupStaticProperties="false">
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Feature">
<directory>tests/Feature</directory>
</testsuite>
</testsuites>
<php>
<env name="DB_CONNECTION" value="testing"/>
</php>
</phpunit>
31 changes: 14 additions & 17 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false"
colors="true" processIsolation="false" stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache"
backupStaticProperties="false">
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Feature">
<directory>tests/Feature</directory>
</testsuite>
</testsuites>
<php>
<env name="DB_CONNECTION" value="testing"/>
</php>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="Feature">
<directory>tests/Feature</directory>
</testsuite>
</testsuites>
<php>
<env name="DB_CONNECTION" value="testing"/>
</php>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
</phpunit>