Skip to content

Commit

Permalink
GH Actions: update PHP versions in workflows
Browse files Browse the repository at this point in the history
PHP 8.2 has been released today 🎉 and the `setup-php` action has announced support for PHP 8.3, so adding PHP 8.3 to the matrix and no longer allowing PHP 8.2 to fail the build.

Builds against PHP 8.3 are still allowed to fail for now.
  • Loading branch information
jrfnl committed Dec 8, 2022
1 parent a5829f2 commit 34528d3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/integrationtest.yml
Expand Up @@ -34,6 +34,7 @@ jobs:
- '8.0'
- '8.1'
- '8.2'
- '8.3'
composer:
- 'v1'
- 'v2'
Expand Down Expand Up @@ -70,6 +71,9 @@ jobs:
- php: '8.2'
composer: '2.2'
os: 'ubuntu-latest'
- php: '8.3'
composer: '2.2'
os: 'ubuntu-latest'

- php: '7.2'
composer: '2.2'
Expand All @@ -89,6 +93,9 @@ jobs:
- php: '8.2'
composer: '2.2'
os: 'windows-latest'
- php: '8.3'
composer: '2.2'
os: 'windows-latest'

# Also test against the dev version of Composer for early warning about upcoming changes.
- php: 'latest'
Expand All @@ -101,7 +108,7 @@ jobs:

name: "Integration test"

continue-on-error: ${{ matrix.php == '8.2' || matrix.composer == 'snapshot' }}
continue-on-error: ${{ matrix.php == '8.3' || matrix.composer == 'snapshot' }}

steps:
- name: Checkout code
Expand All @@ -123,15 +130,15 @@ jobs:
# Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-composer-dependencies
- name: Install Composer dependencies
if: ${{ matrix.php != '8.2' }}
if: ${{ matrix.php != '8.3' }}
uses: "ramsey/composer-install@v2"
with:
composer-options: '--optimize-autoloader'
# Bust the cache at least once a month - output format: YYYY-MM-DD.
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")

- name: Install Composer dependencies
if: ${{ matrix.php == '8.2' }}
if: ${{ matrix.php == '8.3' }}
uses: "ramsey/composer-install@v2"
with:
composer-options: '--ignore-platform-reqs --optimize-autoloader'
Expand Down

0 comments on commit 34528d3

Please sign in to comment.