From 40a464e509e064215efe4e64e2d0221745a8efff Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 27 Feb 2024 16:24:05 +0000 Subject: [PATCH] Update GitHub Actions for Laravel 11 --- .github/workflows/tests.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 990ce21..fda9f60 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,30 +1,37 @@ name: Tests -on: [push, pull_request] +on: + - push + - pull_request jobs: test: - runs-on: ubuntu-latest + strategy: fail-fast: true matrix: php: [8.0, 8.1, 8.2] - laravel: [9.*, 10.*] + laravel: ['9.*', '10.*', '11.*'] dependency-version: [prefer-stable] include: - laravel: 9.* testbench: 7.* - laravel: 10.* testbench: 8.* + - laravel: 11.* + testbench: 9.* exclude: - php: '8.0' laravel: 10.* + - laravel: 11.* + php: 8.0 + - laravel: 11.* + php: 8.1 name: PHP ${{ matrix.php }} - LARAVEL ${{ matrix.laravel }} - ${{ matrix.dependency-version }} steps: - - name: Checkout Code uses: actions/checkout@v2 @@ -46,5 +53,6 @@ jobs: composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "symfony/console:>=4.3.4" --no-interaction --no-update composer remove "tightenco/duster" --dev --no-interaction --no-update composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction + - name: Execute Tests run: ./vendor/bin/phpunit --testdox