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.
  • Loading branch information
jrfnl committed Nov 23, 2023
1 parent f2798a3 commit 23f8374
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: 'latest'
coverage: none
tools: cs2pr

Expand All @@ -46,10 +46,10 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
php: ['5.5', '7.2', '8.0', '8.1', '8.2']
php: ['5.5', '7.2', '8.0', '8.1', '8.2', '8.3']
experimental: [false]
include:
- php: '8.3'
- php: '8.4'
experimental: true

name: "Lint: PHP ${{ matrix.php }}"
Expand All @@ -75,32 +75,32 @@ jobs:
custom-cache-suffix: $(date -u "+%Y-%m")

- name: Lint against parse errors
if: ${{ matrix.php != '8.3' }}
if: ${{ matrix.php != '8.4' }}
run: composer lint -- --checkstyle | cs2pr

- name: Lint against future parse errors (PHP 8.3)
if: ${{ matrix.php == '8.3' }}
- name: Lint against future parse errors (PHP 8.4)
if: ${{ matrix.php == '8.4' }}
run: composer lint

test:
needs: ['coding-standard', 'lint']
runs-on: ubuntu-22.04
strategy:
matrix:
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
coverage: [false]
experimental: [false]
include:
# Run code coverage on high/low PHP.
- php: '5.5'
coverage: true
experimental: false
- php: '8.2'
- php: '8.3'
coverage: true
experimental: false

# Experimental builds. These are allowed to fail.
- php: '8.3'
- php: '8.4'
coverage: false
experimental: true

Expand All @@ -123,14 +123,14 @@ jobs:
# Install dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-composer-dependencies
- name: Install PHP packages - 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 PHP packages - ignore-platform-reqs
if: ${{ matrix.php == '8.3' }}
if: ${{ matrix.php == '8.4' }}
uses: "ramsey/composer-install@v2"
with:
composer-options: --ignore-platform-reqs
Expand Down

0 comments on commit 23f8374

Please sign in to comment.