Skip to content

Commit d846d30

Browse files
committed
GH Actions: update for the release of PHP 8.5
... which is expected to be released this Thursday. * Builds against PHP 8.5 are no longer allowed to fail. * Add _allowed to fail_ build against PHP 8.6. Includes minor workflow simplification.
1 parent 8b6b235 commit d846d30

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ jobs:
1717
- '8.3'
1818
- '8.4'
1919
- '8.5'
20+
- '8.6'
2021
name: "PHP: ${{ matrix.php-versions }}"
2122

22-
continue-on-error: ${{ matrix.php-versions == '8.5' }}
23+
continue-on-error: ${{ matrix.php-versions == '8.6' }}
2324

2425
steps:
2526
- name: Checkout
@@ -35,19 +36,13 @@ jobs:
3536

3637
# Install dependencies and handle caching in one go.
3738
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
38-
- name: "Install Composer dependencies (PHP < 8.5)"
39-
if: ${{ matrix.php-versions < '8.5' }}
39+
- name: Install Composer dependencies
4040
uses: "ramsey/composer-install@v3"
4141
with:
42+
# For PHP "nightly", we need to install with ignore platform reqs as not all dependencies may allow it yet.
43+
composer-options: ${{ matrix.php == '8.6' && '--ignore-platform-req=php+' || '' }}
4244
# Bust the cache at least once a month - output format: YYYY-MM.
4345
custom-cache-suffix: $(date -u "+%Y-%m")
4446

45-
- name: "Install Composer dependencies (PHP 8.5)"
46-
if: ${{ matrix.php-versions >= '8.5' }}
47-
uses: "ramsey/composer-install@v3"
48-
with:
49-
composer-options: --ignore-platform-reqs
50-
custom-cache-suffix: $(date -u "+%Y-%m")
51-
5247
- name: Run tests
5348
run: vendor/bin/phpunit tests

0 commit comments

Comments
 (0)