Skip to content

Merge trunk

Merge trunk #1983

Workflow file for this run

name: E2E Tests for Dev Env
on:
push:
workflow_dispatch:
permissions:
contents: read
env:
DO_NOT_TRACK: '1'
jobs:
test:
name: Run E2E Tests, shard ${{ matrix.shard }}
strategy:
fail-fast: false
matrix:
shard:
- 1
- 2
- 3
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js environment
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: npm
cache-dependency-path: npm-shrinkwrap.json
- name: Install dependencies
run: npm ci
- name: Pack and install
run: npm pack && npm i -g *.tgz
- name: Preload Docker images
run: |
vip dev-env create --app-code image --php 8.0 --mu-plugins image -e false -p true --mailpit true --photon true && \
vip dev-env start -w && \
vip dev-env destroy
- name: Run tests
run: npm run test:e2e:dev-env -- --shard=${{ matrix.shard }}/${{ strategy.job-total }}