Changeset 51844 for branches/5.4/.github/workflows/phpunit-tests.yml
- Timestamp:
- 09/21/2021 11:02:13 PM (3 years ago)
- Location:
- branches/5.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.4
- Property svn:mergeinfo changed
/trunk merged: 51559-51560,51810-51813,51828
- Property svn:mergeinfo changed
-
branches/5.4/.github/workflows/phpunit-tests.yml
r50674 r51844 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 }}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 }}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 }} 156 run: | 157 docker-compose run --rm php composer --version 158 docker-compose run --rm php composer install 152 run: | 153 if [ ${{ env.LOCAL_PHP }} == '7.1-fpm' ]; then 154 docker-compose run --rm php composer update 155 git checkout -- composer.lock 156 elif [[ ${{ env.LOCAL_PHP }} == '5.6.20-fpm' || ${{ env.LOCAL_PHP }} == '5.6-fpm' || ${{ env.LOCAL_PHP }} == '7.0-fpm' ]]; then 157 docker-compose run --rm php composer require --dev phpunit/phpunit:"^5.7" --update-with-dependencies 158 git checkout -- composer.lock composer.json 159 else 160 docker-compose run --rm php composer install 161 fi 159 162 160 163 - name: Docker debug information
Note: See TracChangeset
for help on using the changeset viewer.