Changeset 51839 for branches/5.7/.github/workflows/phpunit-tests.yml
- Timestamp:
- 09/21/2021 07:28:47 PM (3 years ago)
- Location:
- branches/5.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.7
- Property svn:mergeinfo changed
/trunk merged: 51559-51560,51810-51813,51828
- Property svn:mergeinfo changed
-
branches/5.7/.github/workflows/phpunit-tests.yml
r50671 r51839 22 22 env: 23 23 PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }} 24 COMPOSER_INSTALL: ${{ false }}25 24 # Controls which NPM script to use for running PHPUnit tests. Options ar `php` and `php-composer`. 26 25 PHPUNIT_SCRIPT: php … … 138 137 - name: Get composer cache directory 139 138 id: composer-cache 140 if: ${{ env.COMPOSER_INSTALL == true || env.LOCAL_PHP == '8.0-fpm' }}141 139 run: echo "::set-output name=dir::$(composer config cache-files-dir)" 142 140 143 141 - name: Cache Composer dependencies 144 if: ${{ env.COMPOSER_INSTALL == true || env.LOCAL_PHP == '8.0-fpm' }}145 142 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 146 143 env: … … 151 148 152 149 - name: Install Composer dependencies 153 if: ${{ env.COMPOSER_INSTALL == true || env.LOCAL_PHP == '8.0-fpm' }}154 150 run: | 155 151 docker-compose run --rm php composer --version … … 161 157 docker-compose run --rm php composer install --ignore-platform-reqs 162 158 echo "PHPUNIT_SCRIPT=php-composer" >> $GITHUB_ENV 159 elif [ ${{ env.LOCAL_PHP }} == '7.1-fpm' ]; then 160 docker-compose run --rm php composer update 161 git checkout -- composer.lock 162 elif [[ ${{ env.LOCAL_PHP }} == '5.6.20-fpm' || ${{ env.LOCAL_PHP }} == '7.0-fpm' ]]; then 163 docker-compose run --rm php composer require --dev phpunit/phpunit:"^5.7" --update-with-dependencies 164 git checkout -- composer.lock composer.json 163 165 else 164 166 docker-compose run --rm php composer install
Note: See TracChangeset
for help on using the changeset viewer.