Merge pull request #3115 from jrfnl/feature/ghactions-update-for-php-8.4-release

GH Actions: PHP 8.4 has been released
This commit is contained in:
Marcus Bointon 2024-11-22 05:02:58 +01:00 committed by GitHub
commit 7e2e8d53e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 12 deletions

View File

@ -46,10 +46,10 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
php: ['5.5', '7.2', '8.0', '8.1', '8.2', '8.3'] php: ['5.5', '7.2', '8.0', '8.4']
experimental: [false] experimental: [false]
include: include:
- php: '8.4' - php: '8.5'
experimental: true experimental: true
name: "Lint: PHP ${{ matrix.php }}" name: "Lint: PHP ${{ matrix.php }}"
@ -75,11 +75,11 @@ jobs:
custom-cache-suffix: $(date -u "+%Y-%m") custom-cache-suffix: $(date -u "+%Y-%m")
- name: Lint against parse errors - name: Lint against parse errors
if: ${{ matrix.php != '8.4' }} if: ${{ matrix.php != '8.5' }}
run: composer lint -- --checkstyle | cs2pr run: composer lint -- --checkstyle | cs2pr
- name: Lint against future parse errors (PHP 8.4) - name: Lint against future parse errors (PHP 8.5)
if: ${{ matrix.php == '8.4' }} if: ${{ matrix.php == '8.5' }}
run: composer lint run: composer lint
test: test:
@ -87,7 +87,7 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
extensions: ['optimal', 'minimal'] extensions: ['optimal', 'minimal']
coverage: [false] coverage: [false]
experimental: [false] experimental: [false]
@ -101,21 +101,21 @@ jobs:
extensions: 'minimal' extensions: 'minimal'
coverage: true coverage: true
experimental: false experimental: false
- php: '8.3' - php: '8.4'
extensions: 'optimal' extensions: 'optimal'
coverage: true coverage: true
experimental: false experimental: false
- php: '8.3' - php: '8.4'
extensions: 'minimal' extensions: 'minimal'
coverage: true coverage: true
experimental: false experimental: false
# Experimental builds. These are allowed to fail. # Experimental builds. These are allowed to fail.
- php: '8.4' - php: '8.5'
extensions: 'optimal' extensions: 'optimal'
coverage: false coverage: false
experimental: true experimental: true
- php: '8.4' - php: '8.5'
extensions: 'minimal' extensions: 'minimal'
coverage: false coverage: false
experimental: true experimental: true
@ -166,7 +166,7 @@ jobs:
# Install dependencies and handle caching in one go. # Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer # @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
- name: Install PHP packages - normal - name: Install PHP packages - normal
if: ${{ matrix.php != '8.4' }} if: ${{ matrix.php != '8.5' }}
uses: "ramsey/composer-install@v3" uses: "ramsey/composer-install@v3"
with: with:
composer-options: ${{ steps.set_extensions.outputs.COMPOSER_OPTIONS }} composer-options: ${{ steps.set_extensions.outputs.COMPOSER_OPTIONS }}
@ -174,7 +174,7 @@ jobs:
custom-cache-suffix: $(date -u "+%Y-%m") custom-cache-suffix: $(date -u "+%Y-%m")
- name: Install PHP packages - ignore-platform-reqs - name: Install PHP packages - ignore-platform-reqs
if: ${{ matrix.php == '8.4' }} if: ${{ matrix.php == '8.5' }}
uses: "ramsey/composer-install@v3" uses: "ramsey/composer-install@v3"
with: with:
composer-options: --ignore-platform-reqs ${{ steps.set_extensions.outputs.COMPOSER_OPTIONS }} composer-options: --ignore-platform-reqs ${{ steps.set_extensions.outputs.COMPOSER_OPTIONS }}