chore(deps-dev): Bump eslint-plugin-cypress from 3.5.0 to 4.1.0 in the eslint group across 1 directory #2872
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Enterprise Search e2e tests | |
env: | |
NODE_VERSION: "20" | |
on: | |
pull_request: | |
branches: | |
- develop | |
- production | |
- staging | |
paths: | |
- 'bin/search/**' | |
- 'search/**' | |
- 'tests/search/e2e/**' | |
- 'package-lock.json' | |
- '.github/workflows/search-e2e.yml' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
cypress_local: | |
name: Cypress - Local | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
submodules: recursive | |
- name: Prepare source code | |
uses: ./.github/actions/prepare-source | |
- name: "Install node v${{ env.NODE_VERSION }}" | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Set up WP environment with Elasticsearch | |
run: npm run search-env:start | |
- name: Build asset | |
run: npm run search-build | |
- name: Set up database | |
run: npm run cypress:setup | |
- name: Test | |
run: npm run cypress:run | |
- name: Make artifacts available | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: cypress-artifact | |
retention-days: 2 | |
path: | | |
${{ github.workspace }}/tests/cypress/screenshots/ | |
${{ github.workspace }}/tests/cypress/videos/ | |
${{ github.workspace }}/tests/cypress/logs/ | |
${{ github.workspace }}/cypress/results/ | |
${{ github.workspace }}/tests/search/e2e/screenshots/ | |
${{ github.workspace }}/tests/search/e2e/videos/ | |
${{ github.workspace }}/tests/search/e2e/logs/ | |
- name: Stop Elasticsearch | |
if: always() | |
run: docker compose down | |
working-directory: bin/search/es-docker |