Update GitHub Actions matrix #121
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
tags-ignore: | |
- '**' | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- php: '7.4' | |
wp: WordPress | |
- php: '7.4' | |
wp: WordPress#6.3.2 | |
- php: '7.4' | |
wp: WordPress#6.2.3 | |
- php: '8.0' | |
wp: WordPress | |
- php: '8.0' | |
wp: WordPress#6.3.2 | |
- php: '8.0' | |
wp: WordPress#6.2.3 | |
- php: '8.2' | |
wp: WordPress | |
- php: '8.2' | |
wp: WordPress#6.3.2 | |
- php: '8.2' | |
wp: WordPress#6.2.3 | |
name: PHP ${{ matrix.php }} / ${{ matrix.wp }} Test | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Npm install and build | |
run: | | |
npm ci | |
npm run build | |
- name: Composer install and set phpcs | |
run: | | |
composer install | |
composer phpcs | |
- name: Running lint check | |
run: npm run lint | |
- name: Install WordPress | |
run: | | |
WP_ENV_CORE=WordPress/${{ matrix.wp }} WP_ENV_PHP_VERSION=${{ matrix.php }} npm run wp-env start | |
npm run wp-env run cli wp core version | |
npm run wp-env run cli wp cli info | |
- name: Running e2e tests | |
run: npm run test:e2e | |
- name: Archive debug artifacts | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: failures-artifacts | |
path: artifacts | |
if-no-files-found: ignore |