Skip to content

Commit b9dfa56

Browse files
authored
Merge pull request #184 from antecedent/feature/ghactions-update-for-php-8.5-release
2 parents 8b6b235 + d846d30 commit b9dfa56

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

.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)