2020-11-16 04:33:06 +00:00
|
|
|
name: E2E tests
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
e2e-tests:
|
2021-03-12 01:14:35 +00:00
|
|
|
runs-on: ubuntu-18.04
|
2020-11-16 04:33:06 +00:00
|
|
|
steps:
|
2021-02-01 02:24:11 +00:00
|
|
|
- name: Cancel Previous Runs
|
|
|
|
uses: styfle/cancel-workflow-action@0.7.0
|
|
|
|
with:
|
|
|
|
access_token: ${{ github.token }}
|
2020-11-16 04:33:06 +00:00
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup PHP
|
2021-01-06 23:51:43 +00:00
|
|
|
uses: shivammathur/setup-php@2.9.0
|
2020-11-16 04:33:06 +00:00
|
|
|
with:
|
|
|
|
php-version: '7.3'
|
|
|
|
- name: Install PHP dependencies
|
|
|
|
run: |
|
|
|
|
composer self-update 2.0.6
|
|
|
|
composer i
|
|
|
|
- name: Setup Node.js
|
|
|
|
uses: actions/setup-node@v2-beta
|
|
|
|
with:
|
|
|
|
node-version: '14'
|
|
|
|
- name: Build
|
|
|
|
env:
|
|
|
|
WP_VERSION: latest
|
|
|
|
WP_MULTISITE: 0
|
|
|
|
WP_CORE_DIR: /tmp/wordpress
|
|
|
|
RUN_E2E: 1
|
|
|
|
run: |
|
|
|
|
npm i
|
|
|
|
composer require wp-cli/i18n-command
|
|
|
|
npm run build
|
|
|
|
npm install jest --global
|
2021-03-12 01:14:35 +00:00
|
|
|
WP_VERSION=5.6.2
|
2020-11-16 04:33:06 +00:00
|
|
|
npm run docker:up
|
|
|
|
npm run test:e2e
|