Skip to content

Commit

Permalink
GH Actions: update for release of PHP 8.3
Browse files Browse the repository at this point in the history
... 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.
  • Loading branch information
jrfnl committed Nov 23, 2023
1 parent dbc6e04 commit b8a25e4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

Expand All @@ -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+
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand All @@ -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+
Expand Down

0 comments on commit b8a25e4

Please sign in to comment.