Changeset 50379
- Timestamp:
- 02/17/2021 07:31:25 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/phpunit-tests.yml
r50299 r50379 125 125 # - todo: Configure Slack notifications for failing tests. 126 126 test-php: 127 name: ${{ matrix.php }}${{ matrix.m emcached && ' with memcached' || '' }} on ${{ matrix.os }}127 name: ${{ matrix.php }}${{ matrix.multisite && ' multisite' || '' }}${{ matrix.memcached && ' with memcached' || '' }} on ${{ matrix.os }} 128 128 needs: setup-wordpress 129 129 runs-on: ${{ matrix.os }} 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.20', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0' ] 133 133 os: [ ubuntu-latest ] 134 134 memcached: [ false ] 135 multisite: [ false, true ] 135 136 include: 136 # Include job for PHP 7.4 with memcached.137 # Include jobs for PHP 7.4 with memcached. 137 138 - php: '7.4' 138 139 os: ubuntu-latest 139 140 memcached: true 141 multisite: false 142 - php: '7.4' 143 os: ubuntu-latest 144 memcached: true 145 multisite: true 140 146 # Report the results of the PHP 7.4 without memcached job. 141 147 - php: '7.4' 142 148 os: ubuntu-latest 143 149 memcached: false 150 multisite: false 144 151 report: true 145 152 env: 146 153 LOCAL_PHP: ${{ matrix.php }}-fpm 147 154 LOCAL_PHP_MEMCACHED: ${{ matrix.memcached }} 155 PHPUNIT_CONFIG: ${{ matrix.multisite && 'tests/phpunit/multisite.xml' || 'phpunit.xml.dist' }} 148 156 149 157 steps: … … 250 258 251 259 - name: Run PHPUnit tests 252 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c phpunit.xml.dist260 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c ${{ env.PHPUNIT_CONFIG }} 253 261 254 262 - name: Run AJAX tests 255 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c phpunit.xml.dist --group ajax 256 257 - name: Run tests as a multisite install 258 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c tests/phpunit/multisite.xml 259 260 - name: Run AJAX tests as a multisite install 261 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c tests/phpunit/multisite.xml --group ajax 263 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c ${{ env.PHPUNIT_CONFIG }} --group ajax 262 264 263 265 - name: Run ms-files tests as a multisite install 266 if: ${{ matrix.multisite }} 264 267 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c tests/phpunit/multisite.xml --group ms-files 265 268 266 269 - name: Run external HTTP tests 270 if: ${{ ! matrix.multisite }} 267 271 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c phpunit.xml.dist --group external-http 268 272 269 273 - name: Run REST API tests 274 if: ${{ ! matrix.multisite }} 270 275 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c phpunit.xml.dist --group restapi-jsclient 271 276
Note: See TracChangeset
for help on using the changeset viewer.