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 1818 - ' phpunit*'
1919 - ' .github/workflows/phpunit.yml'
2020
21- env :
22- COMPOSER_UPDATE_FLAGS : " "
23-
2421jobs :
2522 main :
2623 name : PHP ${{ matrix.php-versions }} - ${{ matrix.db-platforms }} - ${{ matrix.dependencies }}
@@ -147,17 +144,15 @@ jobs:
147144 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }}
148145 restore-keys : ${{ runner.os }}-composer-
149146
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-
154147 - name : Install dependencies
155148 run : |
156149 if [ -f composer.lock ]; then
157150 composer install ${{ env.COMPOSER_UPDATE_FLAGS }} --no-progress --no-interaction --prefer-dist --optimize-autoloader
158151 else
159152 composer update ${{ env.COMPOSER_UPDATE_FLAGS }} --no-progress --no-interaction --prefer-dist --optimize-autoloader
160153 fi
154+ env :
155+ COMPOSER_UPDATE_FLAGS : ${{ matrix.dependencies == 'lowest' && '--prefer-lowest' || '' }}
161156
162157 - name : Test with PHPUnit
163158 run : vendor/bin/phpunit --verbose --coverage-text --testsuite main
You can’t perform that action at this time.
0 commit comments