From c26579efcf2989967273c53af1de2d89a01330a5 Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 27 Feb 2024 16:55:40 +0000 Subject: [PATCH] Update GitHub Actions for Laravel 11 --- .github/workflows/ci-phpstan.yml | 11 ++++++++++- .github/workflows/ci-tests.yml | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-phpstan.yml b/.github/workflows/ci-phpstan.yml index 74aa8f7..91fe96d 100644 --- a/.github/workflows/ci-phpstan.yml +++ b/.github/workflows/ci-phpstan.yml @@ -6,11 +6,12 @@ on: jobs: run-tests: runs-on: ubuntu-latest + strategy: fail-fast: false matrix: php: [8.0, 8.1, 8.2] - laravel: [8.*, 9.*, 10.*] + laravel: ['8.*', '9.*', '10.*', '11.*'] include: - laravel: 10.* testbench: 8.* @@ -18,11 +19,17 @@ jobs: testbench: 7.* - laravel: 8.* testbench: 6.* + - laravel: 11.* + testbench: 9.* exclude: - laravel: 10.* php: 8.0 - laravel: 10.* php: 8.1 + - laravel: 11.* + php: 8.0 + - laravel: 11.* + php: 8.1 name: PHP${{ matrix.php }} - Laravel ${{ matrix.laravel }} @@ -43,9 +50,11 @@ jobs: run: | echo "::add-matcher::${{ runner.tool_cache }}/php.json" echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + - name: Install dependencies run: | composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --prefer-dist --no-interaction --no-suggest + - name: Run Larastan run: vendor/bin/phpstan analyse diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 5473de3..4610f26 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -6,11 +6,12 @@ on: jobs: run-tests: runs-on: ubuntu-latest + strategy: fail-fast: false matrix: php: [8.0, 8.1, 8.2] - laravel: [8.*, 9.*, 10.*] + laravel: ['8.*', '9.*', '10.*', '11.*'] include: - laravel: 10.* testbench: 8.* @@ -18,11 +19,17 @@ jobs: testbench: 7.* - laravel: 8.* testbench: 6.* + - laravel: 11.* + testbench: 9.* exclude: - laravel: 10.* php: 8.0 - laravel: 10.* php: 8.1 + - laravel: 11.* + php: 8.0 + - laravel: 11.* + php: 8.1 name: PHP${{ matrix.php }} - Laravel ${{ matrix.laravel }} @@ -43,9 +50,11 @@ jobs: run: | echo "::add-matcher::${{ runner.tool_cache }}/php.json" echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + - name: Install dependencies run: | composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --prefer-dist --no-interaction --no-suggest + - name: Execute tests run: composer test