diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fe6059b..8a81007 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,36 +4,38 @@ on: push: branches: - main - pull_request: - types: [ opened, synchronize, reopened ] + types: + - opened + - synchronize + - reopened jobs: test: runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, 'ci skip')" + strategy: fail-fast: false matrix: - php: [ 7.2, 7.3, 7.4, 8.0, 8.1 ] - laravel: [ 7.*, 8.*, 9.* , 10.*] - dependency-version: [ prefer-lowest, prefer-stable ] + php: [7.2, 7.3, 7.4, 8.0, 8.1, '8.2'] + laravel: ['7.*', '8.*', '9.*', '10.*', '11.*'] + dependency-version: [prefer-lowest, prefer-stable] include: - laravel: 10.* testbench: 8.* - laravel: 7.* testbench: 5.* - - laravel: 7.* dependency-version: prefer-lowest composer-version: --1 - - laravel: 8.* testbench: 6.* - - laravel: 9.* testbench: 7.* - + - laravel: 11.* + testbench: 9.* exclude: - laravel: 10.* php: 7.2 @@ -45,25 +47,27 @@ jobs: php: 8.0 - laravel: 7.* php: 8.1 - - laravel: 8.* php: 8.1 dependency-version: prefer-lowest - - # Laravel 8 requires PHP 7.3. - laravel: 8.* php: 7.2 - - # Laravel 9 requires PHP 8. - laravel: 9.* php: 7.2 - - laravel: 9.* php: 7.3 - - laravel: 9.* php: 7.4 - + - laravel: 11.* + php: 7.2 + - laravel: 11.* + php: 7.3 + - laravel: 11.* + php: 7.4 + - laravel: 11.* + php: 8.0 + - laravel: 11.* + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} @@ -91,4 +95,4 @@ jobs: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction - name: Execute tests - run: vendor/bin/phpunit \ No newline at end of file + run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index 44f6439..64d8dad 100644 --- a/composer.json +++ b/composer.json @@ -11,14 +11,14 @@ ], "require": { "php": "^7.2|^8.0", - "illuminate/support": "^7.0|^8.0|^9.0|^10.0", - "illuminate/filesystem": "^7.0|^8.0|^9.0|^10.0", - "illuminate/console": "^7.0|^8.0|^9.0|^10.0" + "illuminate/support": "^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/filesystem": "^7.0|^8.0|^9.0|^10.0|^11.0", + "illuminate/console": "^7.0|^8.0|^9.0|^10.0|^11.0" }, "require-dev": { - "orchestra/testbench": "^5.0|^6.0|^7.0|^8.0", + "orchestra/testbench": "^5.0|^6.0|^7.0|^8.0|^9.0", "mockery/mockery": "^1.3.3", - "phpunit/phpunit": "^8.4|^9.5" + "phpunit/phpunit": "^8.4|^9.5|^10.5" }, "autoload": { "psr-4": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 7150ac5..a218fca 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,24 +1,16 @@ - - - - tests - - - - - src/ - - - + + + + tests + tests/BaseTest.php + + + - \ No newline at end of file + + + src/ + + +