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