Skip to content

Bump the npm_and_yarn group across 1 directory with 5 updates #143

Bump the npm_and_yarn group across 1 directory with 5 updates

Bump the npm_and_yarn group across 1 directory with 5 updates #143

Workflow file for this run

name: E2E test
on:
pull_request:
branches:
- develop
jobs:
build:
name: Build and cache
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- uses: actions/cache@v3
id: cache-node
with:
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
path: |
node_modules
~/.cache
~/.npm
- uses: actions/cache@v3
id: cache-build
with:
key: ${{ runner.os }}-build-${{ hashFiles('src/**/*') }}
path: |
dist
languages
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm run build
cypress:
needs: build
name: ${{ matrix.core.name }}
runs-on: ubuntu-latest
if: always()
strategy:
matrix:
core:
- {name: 'WP latest', version: 'latest'}
- {name: 'WP minimum', version: 'WordPress/WordPress#6.3'}
- {name: 'WP trunk', version: 'WordPress/WordPress#master'}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: install node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- uses: actions/cache@v3
id: cache-node
with:
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
path: |
node_modules
~/.cache
~/.npm
- uses: actions/cache@v3
id: cache-build
with:
key: ${{ runner.os }}-build-${{ hashFiles('src/**/*') }}
path: |
dist
languages
- run: npm ci
if: ${{ steps.cache-node.outputs.cache-hit != 'true' }}
- run: npm run build
- name: Set the core version
run: ./tests/bin/set-core-version.js ${{ matrix.core.version }}
- name: Set up WP environment
run: npm run env:start
- name: Test
run: npm run cypress:run
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-artifact-insecure-content-warning
retention-days: 2
path: |
${{ github.workspace }}/tests/cypress/screenshots/
${{ github.workspace }}/tests/cypress/videos/
${{ github.workspace }}/tests/cypress/logs/