diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 257a373..df5c7de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,19 +26,19 @@ env: DB_PASSWORD: 'postgres' DB_HOST: '127.0.0.1' -jobs: +jobs: lint: runs-on: '${{ matrix.operating_system }}' - timeout-minutes: 20 - strategy: + timeout-minutes: 20 + strategy: matrix: operating_system: [ubuntu-latest] php_versions: ['7.4'] fail-fast: false - env: + env: PHP_CS_FIXER_FUTURE_MODE: '0' name: 'Lint PHP' - steps: + steps: - name: 'Checkout' uses: actions/checkout@v2 - name: 'Setup cache environment' @@ -55,11 +55,11 @@ jobs: key: '${{ steps.cache-env.outputs.key }}' restore-keys: '${{ steps.cache-env.outputs.key }}' - name: 'Setup PHP' - uses: shivammathur/setup-php@v2 - with: + uses: shivammathur/setup-php@v2 + with: php-version: ${{ matrix.php_versions }} extensions: '${{ env.php_extensions }}' - ini-values: memory_limit=-1 + ini-values: memory_limit=-1 tools: pecl, composer coverage: none - name: 'Setup problem matchers for PHP (aka PHP error logs)' @@ -82,12 +82,6 @@ jobs: laravel: ['^6.0'] php_versions: ['7.4'] include: - - operating_system: ubuntu-latest - postgres: '9.6' - php_versions: '7.3' - laravel: '^6.0' - experimental: true - coverage: false - operating_system: ubuntu-latest postgres: '10' php_versions: '7.4' @@ -118,6 +112,12 @@ jobs: laravel: '^10.0' experimental: false coverage: false + - operating_system: ubuntu-latest + postgres: '15' + php_versions: '8.2' + laravel: '^11.0' + experimental: false + coverage: false runs-on: '${{ matrix.operating_system }}' services: postgres: diff --git a/composer.json b/composer.json index f5c7131..dff89ca 100644 --- a/composer.json +++ b/composer.json @@ -35,15 +35,15 @@ } }, "require": { - "php": "^7.3|^7.4|^8.0", - "illuminate/support": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0", - "illuminate/database": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0", - "illuminate/console": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0" + "php": "^7.3|^7.4|^8.0|^8.1|^8.2", + "illuminate/support": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0|^11.0", + "illuminate/database": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0|^11.0", + "illuminate/console": "^5.7|^6.20|^7.30|^8.20|^9.0|^10.0|^11.0" }, "require-dev": { - "phpunit/phpunit": "^7.3|^8.5|^9.4|^10.0", + "phpunit/phpunit": "^7.3|^8.5|^9.4|^10.0|^11.0", "php-mock/php-mock": "^2.0", - "orchestra/testbench": "^3.8|^4.8|^5.7|^6.2|^7.0|^8.0", + "orchestra/testbench": "^3.8|^4.8|^5.7|^6.2|^7.0|^8.0|^9.0", "umbrellio/code-style-php": "^1.0", "laravel/legacy-factories": "^1.0", "php-coveralls/php-coveralls": "^2.1", diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 393f760..e58c5b1 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -4,7 +4,6 @@ colors="true" processIsolation="false" stopOnFailure="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd" - cacheDirectory=".phpunit.cache" > diff --git a/tests/functional/Console/RollbackMissingMigrationsTest.php b/tests/functional/Console/RollbackMissingMigrationsTest.php index 7caf192..4aa5dbf 100644 --- a/tests/functional/Console/RollbackMissingMigrationsTest.php +++ b/tests/functional/Console/RollbackMissingMigrationsTest.php @@ -50,7 +50,7 @@ public function rollbackSuccessful(array $before, array $after): void * @test * @dataProvider provideMigrations */ - public function nothingToRollback(array $before): void + public function nothingToRollback(array $before, array $after): void { $this->assertSame($before, $this->getMigrations()); $this->rollback(self::DATABASE_PATH . 'old_migrations', self::DATABASE_PATH . 'old_migrations');