Skip to content

Commit 1f52eed

Browse files
committed
Merge branch '3.x' into 4.x
2 parents 19afd70 + 88a9f55 commit 1f52eed

File tree

2 files changed

+9
-31
lines changed

2 files changed

+9
-31
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,11 @@ jobs:
4949

5050
# Install dependencies and handle caching in one go.
5151
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
52-
- name: Install Composer dependencies - normal
53-
if: matrix.php != 'nightly'
52+
- name: Install Composer dependencies
5453
uses: "ramsey/composer-install@v3"
5554
with:
56-
# Bust the cache at least once a month - output format: YYYY-MM.
57-
custom-cache-suffix: $(date -u "+%Y-%m")
58-
59-
- name: Install Composer dependencies - ignore PHP restrictions
60-
if: matrix.php == 'nightly'
61-
uses: "ramsey/composer-install@v3"
62-
with:
63-
composer-options: --ignore-platform-req=php+
55+
# For PHP "nightly", we need to install with ignore platform reqs as not all dependencies may allow it yet.
56+
composer-options: ${{ matrix.php == 'nightly' && '--ignore-platform-req=php+' || '' }}
6457
# Bust the cache at least once a month - output format: YYYY-MM.
6558
custom-cache-suffix: $(date -u "+%Y-%m")
6659

.github/workflows/test.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,11 @@ jobs:
155155

156156
# Install dependencies and handle caching in one go.
157157
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
158-
- name: Install Composer dependencies - normal
159-
if: matrix.php != 'nightly'
158+
- name: Install Composer dependencies
160159
uses: "ramsey/composer-install@v3"
161160
with:
162-
# Bust the cache at least once a month - output format: YYYY-MM.
163-
custom-cache-suffix: $(date -u "+%Y-%m")
164-
165-
- name: Install Composer dependencies - ignore PHP restrictions
166-
if: matrix.php == 'nightly'
167-
uses: "ramsey/composer-install@v3"
168-
with:
169-
composer-options: --ignore-platform-req=php+
161+
# For PHP "nightly", we need to install with ignore platform reqs as not all dependencies may allow it yet.
162+
composer-options: ${{ matrix.php == 'nightly' && '--ignore-platform-req=php+' || '' }}
170163
# Bust the cache at least once a month - output format: YYYY-MM.
171164
custom-cache-suffix: $(date -u "+%Y-%m")
172165

@@ -368,19 +361,11 @@ jobs:
368361

369362
# Install dependencies and handle caching in one go.
370363
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
371-
- name: Install Composer dependencies - normal
372-
if: matrix.php != 'nightly'
373-
uses: "ramsey/composer-install@v3"
374-
with:
375-
composer-options: "--no-dev"
376-
# Bust the cache at least once a month - output format: YYYY-MM.
377-
custom-cache-suffix: $(date -u "+%Y-%m")
378-
379-
- name: Install Composer dependencies - ignore PHP restrictions
380-
if: matrix.php == 'nightly'
364+
- name: Install Composer dependencies
381365
uses: "ramsey/composer-install@v3"
382366
with:
383-
composer-options: "--no-dev --ignore-platform-req=php+"
367+
# For PHP "nightly", we need to install with ignore platform reqs as not all dependencies may allow it yet.
368+
composer-options: ${{ matrix.php == 'nightly' && '--no-dev --ignore-platform-req=php+' || '--no-dev' }}
384369
# Bust the cache at least once a month - output format: YYYY-MM.
385370
custom-cache-suffix: $(date -u "+%Y-%m")
386371

0 commit comments

Comments
 (0)