From b8a25e4b397f1fa97b8f2451c273dcc23d007522 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 20 Nov 2023 03:58:19 +0100 Subject: [PATCH] GH Actions: update for release of PHP 8.3 ... which is expected later today. Builds against PHP 8.3 should no longer be allowed to fail. Includes adding an _allowed to fail_ build against PHP 8.4/dev. --- .github/workflows/lint.yml | 8 ++++---- .github/workflows/test.yml | 12 ++++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 01d05c7..7f0364a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,9 +20,9 @@ jobs: strategy: matrix: - php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] + php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] - continue-on-error: ${{ matrix.php == '8.3' }} + continue-on-error: ${{ matrix.php == '8.4' }} name: "Lint: PHP ${{ matrix.php }}" @@ -43,14 +43,14 @@ jobs: # Install dependencies and handle caching in one go. # @link https://github.com/marketplace/actions/install-composer-dependencies - name: Install Composer dependencies - normal - if: matrix.php != '8.3' + if: matrix.php != '8.4' uses: "ramsey/composer-install@v2" with: # Bust the cache at least once a month - output format: YYYY-MM. custom-cache-suffix: $(date -u "+%Y-%m") - name: Install Composer dependencies - ignore PHP restrictions - if: matrix.php == '8.3' + if: matrix.php == '8.4' uses: "ramsey/composer-install@v2" with: composer-options: --ignore-platform-req=php+ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d1336f9..c7a7ece 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: strategy: matrix: - php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] + php: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] phpunit: ['auto'] coverage: [true] experimental: [false] @@ -78,9 +78,13 @@ jobs: phpunit: '9.3.0' coverage: true experimental: false + - php: '8.3' + phpunit: '9.3.0' + coverage: true + experimental: false # Experimental builds. - - php: '8.3' + - php: '8.4' phpunit: 'auto' # PHPUnit 9.x. coverage: false experimental: true @@ -107,14 +111,14 @@ jobs: # Install dependencies and handle caching in one go. # @link https://github.com/marketplace/actions/install-composer-dependencies - name: Install Composer dependencies - normal - if: matrix.php != '8.3' + if: matrix.php < '8.3' uses: "ramsey/composer-install@v2" with: # Bust the cache at least once a month - output format: YYYY-MM. custom-cache-suffix: $(date -u "+%Y-%m") - name: Install Composer dependencies - ignore PHP restrictions - if: matrix.php == '8.3' + if: matrix.php >= '8.3' uses: "ramsey/composer-install@v2" with: composer-options: --ignore-platform-req=php+