From 93fcde9ee083f27f748e2e189600e82028f1c0e0 Mon Sep 17 00:00:00 2001 From: Jacob Baker-Kretzmar Date: Fri, 23 Sep 2022 11:25:50 -0400 Subject: [PATCH 1/2] Test on PHP 8.2 --- .github/workflows/{tests.yml => test.yml} | 29 +++++++++++++---------- 1 file changed, 16 insertions(+), 13 deletions(-) rename .github/workflows/{tests.yml => test.yml} (67%) diff --git a/.github/workflows/tests.yml b/.github/workflows/test.yml similarity index 67% rename from .github/workflows/tests.yml rename to .github/workflows/test.yml index 09a9474e..2187e016 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Tests +name: Test on: pull_request: paths-ignore: ['dist/**', '*.md'] @@ -9,10 +9,11 @@ jobs: test: name: ${{ matrix.os[0] }}, PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }} runs-on: ${{ matrix.os[1] }} + continue-on-error: ${{ matrix.php == '8.2' }} strategy: matrix: os: [[Ubuntu, ubuntu-latest], [Windows, windows-latest]] - php: ['7.3', '7.4', '8.0', '8.1'] + php: ['7.3', '7.4', '8.0', '8.1', '8.2'] laravel: [5.5.*, 5.6.*, 5.7.*, 5.8.*, 6.*, 7.*, 8.*, 9.*] exclude: - php: '7.3' @@ -40,23 +41,25 @@ jobs: - php: '8.1' laravel: 7.* steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extensions: fileinfo - - uses: actions/cache@v2 + - uses: actions/setup-node@v3 with: - path: ~/.composer/cache/files - key: php-${{ matrix.php }}-laravel-${{ matrix.laravel }}-composer-${{ hashFiles('composer.lock') }} - restore-keys: | - php-${{ matrix.php }}-laravel-${{ matrix.laravel }}-composer- - php-${{ matrix.php }}-laravel- - - uses: actions/cache@v1 + node-version: 16 + cache: 'npm' + - id: composer-cache-dir + run: echo "::set-output name=dir::$(composer config cache-files-dir)" + - uses: actions/cache@v3 with: - path: ~/.npm - key: npm-${{ hashFiles('**/package-lock.json') }} - restore-keys: npm- + path: ${{ steps.composer-cache-dir.outputs.dir }} + key: ${{ runner.os }}-php-${{ matrix.php }}-laravel-${{ matrix.laravel }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php-${{ matrix.php }}-laravel-${{ matrix.laravel }}-composer- + ${{ runner.os }}-php-${{ matrix.php }}-laravel- + ${{ runner.os }}-php- - run: | composer require laravel/framework:"${{ matrix.laravel }}" --no-update --no-interaction composer update --prefer-dist --no-interaction From a868a95a6fdc407a5ed0fb5cef8179b47c6f65e4 Mon Sep 17 00:00:00 2001 From: Jacob Baker-Kretzmar Date: Fri, 23 Sep 2022 11:27:24 -0400 Subject: [PATCH 2/2] Exclude older Laravel versions from PHP 8.2 --- .github/workflows/test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2187e016..8c007764 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,6 +40,18 @@ jobs: laravel: 6.* - php: '8.1' laravel: 7.* + - php: '8.2' + laravel: 5.5.* + - php: '8.2' + laravel: 5.6.* + - php: '8.2' + laravel: 5.7.* + - php: '8.2' + laravel: 5.8.* + - php: '8.2' + laravel: 6.* + - php: '8.2' + laravel: 7.* steps: - uses: actions/checkout@v3 - uses: shivammathur/setup-php@v2