@@ -110,7 +110,7 @@ jobs:
110
110
tools : cs2pr
111
111
112
112
# This action also handles the caching of the dependencies.
113
- - name : Set up node and enable caching of dependencies
113
+ - name : Set up node
114
114
uses : actions/setup-node@v4
115
115
with :
116
116
node-version : ' 20'
@@ -125,18 +125,9 @@ jobs:
125
125
# Install dependencies and handle caching in one go.
126
126
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
127
127
- name : Install Composer dependencies
128
- if : ${{ matrix.php != '8.4' }}
129
128
uses : " ramsey/composer-install@v2"
130
129
with :
131
- # Bust the cache at least once a month - output format: YYYY-MM.
132
- custom-cache-suffix : $(date -u "+%Y-%m")
133
-
134
- # For PHP "nightly", we install with ignore platform reqs.
135
- - name : Install Composer dependencies - with ignore platform
136
- if : ${{ matrix.php == '8.4' }}
137
- uses : " ramsey/composer-install@v2"
138
- with :
139
- composer-options : --ignore-platform-req=php
130
+ composer-options : ${{ matrix.php == '8.4' && '--ignore-platform-req=php' || '' }}
140
131
custom-cache-suffix : $(date -u "+%Y-%m")
141
132
142
133
# Note: The code style check is run multiple times against every PHP version
@@ -161,6 +152,7 @@ jobs:
161
152
run : cs2pr ./phpcs-report.xml
162
153
163
154
- name : Download the PHPCS phar
155
+ if : ${{ matrix.custom_ini == false }}
164
156
uses : actions/download-artifact@v3
165
157
with :
166
158
name : phpcs-phar
0 commit comments