File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 18
18
- ' phpunit*'
19
19
- ' .github/workflows/phpunit.yml'
20
20
21
- env :
22
- COMPOSER_UPDATE_FLAGS : " "
23
-
24
21
jobs :
25
22
main :
26
23
name : PHP ${{ matrix.php-versions }} - ${{ matrix.db-platforms }} - ${{ matrix.dependencies }}
@@ -147,17 +144,15 @@ jobs:
147
144
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }}
148
145
restore-keys : ${{ runner.os }}-composer-
149
146
150
- - name : Handle lowest dependencies update
151
- if : contains(matrix.dependencies, 'lowest')
152
- run : echo "COMPOSER_UPDATE_FLAGS=$COMPOSER_UPDATE_FLAGS --prefer-lowest" >> $GITHUB_ENV
153
-
154
147
- name : Install dependencies
155
148
run : |
156
149
if [ -f composer.lock ]; then
157
150
composer install ${{ env.COMPOSER_UPDATE_FLAGS }} --no-progress --no-interaction --prefer-dist --optimize-autoloader
158
151
else
159
152
composer update ${{ env.COMPOSER_UPDATE_FLAGS }} --no-progress --no-interaction --prefer-dist --optimize-autoloader
160
153
fi
154
+ env :
155
+ COMPOSER_UPDATE_FLAGS : ${{ matrix.dependencies == 'lowest' && '--prefer-lowest' || '' }}
161
156
162
157
- name : Test with PHPUnit
163
158
run : vendor/bin/phpunit --verbose --coverage-text --testsuite main
You can’t perform that action at this time.
0 commit comments