Changeset 50318
- Timestamp:
- 02/12/2021 08:33:10 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3/.github/workflows/phpunit-tests.yml
r50317 r50318 130 130 strategy: 131 131 matrix: 132 php: [ '8.0', '7.4', '7.3', '7.2', '7.1', '7.0', '5.6.20' ] 132 php: [ '5.6' ] 133 phpunit: [ '4-php-5.6' ] 133 134 os: [ ubuntu-latest ] 134 135 memcached: [ false ] 135 136 include: 136 # Include job for PHP 7.4 with memcached. 137 - php: '7.4' 138 os: ubuntu-latest 139 memcached: true 140 # Report the results of the PHP 7.4 without memcached job. 141 - php: '7.4' 137 - php: '5.5' 138 phpunit: '5.5' 142 139 os: ubuntu-latest 143 140 memcached: false 144 report: true 141 - php: '5.4' 142 phpunit: '5.4' 143 os: ubuntu-latest 144 memcached: false 145 - php: '5.3' 146 phpunit: '5.3' 147 os: ubuntu-latest 148 memcached: false 145 149 env: 146 150 LOCAL_PHP: ${{ matrix.php }}-fpm 151 LOCAL_PHPUNIT: ${{ matrix.phpunit }}-fpm 147 152 LOCAL_PHP_MEMCACHED: ${{ matrix.memcached }} 148 153 … … 180 185 run: npx install-changed --install-command="npm ci" 181 186 182 - name: Get composer cache directory183 id: composer-cache184 if: ${{ env.COMPOSER_INSTALL == true || env.LOCAL_PHP == '8.0-fpm' }}185 run: echo "::set-output name=dir::$(composer config cache-files-dir)"186 187 187 - name: Cache Composer dependencies 188 if: ${{ env.COMPOSER_INSTALL == true || env.LOCAL_PHP == '8.0-fpm'}}188 if: ${{ env.COMPOSER_INSTALL == true }} 189 189 uses: actions/cache@v2 190 190 env: … … 197 197 198 198 - name: Install Composer dependencies 199 if: ${{ env.COMPOSER_INSTALL == true || env.LOCAL_PHP == '8.0-fpm'}}199 if: ${{ env.COMPOSER_INSTALL == true }} 200 200 run: | 201 201 docker-compose run --rm php composer --version 202 203 # The PHPUnit 7.x phar is not compatible with PHP 8 and won't be updated, 204 # as PHPUnit 7 is no longer supported. The Composer-installed PHPUnit should be 205 # used for PHP 8 testing instead. 206 if [ ${{ env.LOCAL_PHP }} == '8.0-fpm' ]; then 207 docker-compose run --rm php composer install --ignore-platform-reqs 208 echo "PHPUNIT_SCRIPT=php-composer" >> $GITHUB_ENV 209 else 210 docker-compose run --rm php composer install 211 fi 202 docker-compose run --rm php composer install 212 203 213 204 - name: Docker debug information … … 267 258 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c phpunit.xml.dist --group restapi-jsclient 268 259 269 # Xdebug supports PHP 8 only from version 3.0, which is not released yet.270 # Once Xdebug 3.0 is released and included in the Docker image, the IF condition should be removed.271 260 # __fakegroup__ is excluded to force PHPUnit to ignore the <exclude> settings in phpunit.xml.dist. 272 261 - name: Run (xDebug) tests 273 if: ${{ env.LOCAL_PHP != '8.0-fpm' }}274 262 run: LOCAL_PHP_XDEBUG=true npm run test:php -- -v --group xdebug --exclude-group __fakegroup__ 275 263
Note: See TracChangeset
for help on using the changeset viewer.