diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 9051175..b040f3d 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -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 @@ -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 diff --git a/phpunit-10.xml b/phpunit-10.xml new file mode 100644 index 0000000..ac59508 --- /dev/null +++ b/phpunit-10.xml @@ -0,0 +1,19 @@ + + + + + src/ + + + + + tests/Feature + + + + + + diff --git a/phpunit.xml b/phpunit.xml index ac59508..ab1c97a 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,19 +1,16 @@ - - - - src/ - - - - - tests/Feature - - - - - + + + + tests/Feature + + + + + + + + src/ + +