From 91857c11bc6e812c47c44dbdb41d6241f1301615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Rub=C3=A9l?= Date: Thu, 14 Mar 2024 19:28:37 +0100 Subject: [PATCH] Update CI scripts --- .github/workflows/bc-check.yml | 4 +++- .github/workflows/phpstan.yml | 4 ++-- .github/workflows/pint.yml | 2 +- .github/workflows/run-tests.yml | 15 ++++++++++----- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/bc-check.yml b/.github/workflows/bc-check.yml index c38e134..d9dfe69 100644 --- a/.github/workflows/bc-check.yml +++ b/.github/workflows/bc-check.yml @@ -19,8 +19,10 @@ jobs: - name: "Install PHP" uses: shivammathur/setup-php@v2 with: - php-version: "8.1" + php-version: "8.3" - name: "Install dependencies" run: "composer install" + - name: "Install BC check" + run: "composer require --dev roave/backward-compatibility-check" - name: "Check for BC breaks" run: "vendor/bin/roave-backward-compatibility-check" diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index c383495..0ac44b8 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -16,8 +16,8 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.1' - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick + php-version: '8.3' + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl coverage: none - name: Cache composer dependencies diff --git a/.github/workflows/pint.yml b/.github/workflows/pint.yml index 6ee477b..ce11a1c 100644 --- a/.github/workflows/pint.yml +++ b/.github/workflows/pint.yml @@ -16,7 +16,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.1' + php-version: '8.3' extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl coverage: none diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 5e87544..53053e9 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -12,13 +12,18 @@ jobs: strategy: fail-fast: true matrix: - os: [ubuntu-latest, windows-latest] - php: [8.0, 8.1, 8.2, 8.3] - laravel: ['10.x', '9.x'] + os: [ubuntu-latest] + php: [8.1, 8.2, 8.3] + laravel: ['10.*', '11.*'] stability: [prefer-lowest, prefer-stable] + include: + - laravel: 10.* + testbench: 8.* + - laravel: 11.* + testbench: 9.* exclude: - - laravel: '10.x' - php: 8.0 + - laravel: 11.* + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}