diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 108570c..6763a88 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,15 +7,9 @@ jobs: strategy: fail-fast: true matrix: - php: [8.2, 8.3] - laravel: [10.0, 11.0] - stability: ["--prefer-lowest", "--prefer-stable"] - include: - - laravel: 10.0 - testbench: 8.0 - - laravel: 11.0 - testbench: 9.0 - name: PHP ${{ matrix.php }} - Laravel v${{ matrix.laravel }} - ${{ matrix.stability }} + php: [8.1, 8.2, 8.3] + stability: ["--prefer-lowest", "--prefer-stable", ""] + name: PHP ${{ matrix.php }} - ${{ matrix.stability }} steps: - name: Checkout uses: actions/checkout@v4 @@ -36,15 +30,12 @@ jobs: uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.strategy }}-composer-${{ hashFiles('**/composer.json') }} + key: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.stability }}-composer-${{ hashFiles('**/composer.json') }} restore-keys: | - ${{ runner.os }}-${{ matrix.php }}-${{ matrix.strategy }}-composer- + ${{ runner.os }}-${{ matrix.php }}-${{ matrix.stability }}-composer- - name: Install dependencies run: composer update ${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest - - name: Require specific versions of packages - run: composer update laravel/framework:^${{ matrix.laravel }} orchestra/testbench:^${{ matrix.testbench }} -W - - name: Execute tests run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index 2617332..fc86abe 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ } }, "require": { - "php": "^8.2", + "php": "^8.1", "laravel/framework": "^10.0|^11.0|11.x-dev" }, "require-dev": {