Skip to content

Commit 1b4cec0

Browse files
authored
Merge pull request #981 from WordPress/feature/ghactions-update-for-php-8.5-release
2 parents 06d1835 + 38818a8 commit 1b4cec0

2 files changed

Lines changed: 11 additions & 25 deletions

File tree

.github/workflows/lint.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
strategy:
2121
matrix:
2222
# Lint against the high/low versions of each PHP major + nightly.
23-
php: ['5.6', '7.0', '7.4', '8.0', '8.4', '8.5']
23+
php: ['5.6', '7.0', '7.4', '8.0', '8.5', '8.6']
2424

2525
name: "Lint: PHP ${{ matrix.php }}"
26-
continue-on-error: ${{ matrix.php == '8.5' }}
26+
continue-on-error: ${{ matrix.php == '8.6' }}
2727

2828
steps:
2929
- name: Checkout code
@@ -41,21 +41,14 @@ jobs:
4141

4242
# Install dependencies and handle caching in one go.
4343
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
44-
- name: Install Composer dependencies - normal
45-
if: ${{ matrix.php != '8.5' }}
44+
- name: Install Composer dependencies
4645
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
4746
with:
47+
# For PHP "nightly", we need to install with ignore platform reqs as not all dependencies may allow it yet.
48+
composer-options: ${{ matrix.php == '8.6' && '--ignore-platform-req=php+' || '' }}
4849
# Bust the cache at least once a month - output format: YYYY-MM.
4950
custom-cache-suffix: $(date -u "+%Y-%m")
5051

51-
# For PHP "nightly", we need to install with ignore platform reqs.
52-
- name: Install Composer dependencies - with ignore platform
53-
if: ${{ matrix.php == '8.5' }}
54-
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
55-
with:
56-
composer-options: "--ignore-platform-req=php+"
57-
custom-cache-suffix: $(date -u "+%Y-%m")
58-
5952
- name: Lint against parse errors
6053
if: ${{ matrix.php >= '7.2' }}
6154
run: composer lint -- --checkstyle | cs2pr

.github/workflows/test.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ jobs:
2323
# Keys:
2424
# - coverage: Whether to run the tests with code coverage.
2525
matrix:
26-
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.5']
26+
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.6']
2727
coverage: [false]
2828

2929
include:
3030
# Run code coverage on low/high PHP.
3131
- php: '5.6'
3232
coverage: true
33-
- php: '8.4'
33+
- php: '8.5'
3434
coverage: true
3535

3636
name: "Test: PHP ${{ matrix.php }}"
37-
continue-on-error: ${{ matrix.php == '8.5' }}
37+
continue-on-error: ${{ matrix.php == '8.6' }}
3838

3939
steps:
4040
- name: Checkout code
@@ -61,21 +61,14 @@ jobs:
6161

6262
# Install dependencies and handle caching in one go.
6363
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
64-
- name: Install Composer dependencies - normal
65-
if: ${{ matrix.php != '8.5' }}
64+
- name: Install Composer dependencies
6665
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
6766
with:
67+
# For PHP "nightly", we need to install with ignore platform reqs as not all dependencies may allow it yet.
68+
composer-options: ${{ matrix.php == '8.6' && '--ignore-platform-req=php+' || '' }}
6869
# Bust the cache at least once a month - output format: YYYY-MM.
6970
custom-cache-suffix: $(date -u "+%Y-%m")
7071

71-
# For PHP "nightly", we need to install with ignore platform reqs.
72-
- name: Install Composer dependencies - with ignore platform
73-
if: ${{ matrix.php == '8.5' }}
74-
uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # 3.1.1
75-
with:
76-
composer-options: "--ignore-platform-req=php+"
77-
custom-cache-suffix: $(date -u "+%Y-%m")
78-
7972
- name: Setup problem matcher to provide annotations for PHPUnit
8073
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
8174

0 commit comments

Comments
 (0)