Skip to content

Commit

Permalink
Support final PHP 8.2, add PHP 8.3 as experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Dec 6, 2022
1 parent 80fc868 commit a3ae6b6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/tests.yml
Expand Up @@ -46,10 +46,10 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
php: ['5.5', '7.2', '8.0', '8.1']
php: ['5.5', '7.2', '8.0', '8.1', '8.2']
experimental: [false]
include:
- php: '8.2'
- php: '8.3'
experimental: true

name: "Lint: PHP ${{ matrix.php }}"
Expand All @@ -75,32 +75,32 @@ jobs:
custom-cache-suffix: $(date -u -d "-0 month -$(($(date +%d)-1)) days" "+%F")

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

- name: Lint against future parse errors (PHP 8.2)
if: ${{ matrix.php == '8.2' }}
- name: Lint against future parse errors (PHP 8.3)
if: ${{ matrix.php == '8.3' }}
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']
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
coverage: [false]
experimental: [false]
include:
# Run code coverage on high/low PHP.
- php: '5.5'
coverage: true
experimental: false
- php: '8.1'
- php: '8.2'
coverage: true
experimental: false

# Experimental builds. These are allowed to fail.
- php: '8.2'
- php: '8.3'
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.2' }}
if: ${{ matrix.php != '8.3' }}
uses: "ramsey/composer-install@v2"
with:
# 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 PHP packages - ignore-platform-reqs
if: ${{ matrix.php == '8.2' }}
if: ${{ matrix.php == '8.3' }}
uses: "ramsey/composer-install@v2"
with:
composer-options: --ignore-platform-reqs
Expand Down

0 comments on commit a3ae6b6

Please sign in to comment.