Skip to content

Update e2e workflow to use PHP 8.2 #81

Update e2e workflow to use PHP 8.2

Update e2e workflow to use PHP 8.2 #81

name: E2E and JS tests
on: push
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: false
env:
# Currently these tests are being run for PHP 7.4 only
# TODO: When a new version of wp-env (after 4.0.2) including this https://github.com/WordPress/gutenberg/pull/30651
# is released, we can switch all PHP tests using wp-env
WP_ENV_PHP_VERSION: 8.2
strategy:
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Set up NodeJS 14.x
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Build Edit Flow
run: |
npm ci
npm run build
- name: Install WordPress with wp-env
run: npm run wp-env start
- name: Run Lint JS
run: npm run lint-js
- name: Run JS tests (Jest)
run: npm run test-jest
- name: Run E2E tests
run: npm run test-e2e