Skip to content

Merge branch 'master' into dependabot/npm_and_yarn/moment-2.29.4 #115

Merge branch 'master' into dependabot/npm_and_yarn/moment-2.29.4

Merge branch 'master' into dependabot/npm_and_yarn/moment-2.29.4 #115

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: 7.4
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