chore(deps-dev): bump php-stubs/wp-cli-stubs from 2.9.0 to 2.11.0 #788
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: E2E Tests | |
on: | |
pull_request: | |
# Cancel previous workflow run groups that have not completed. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} | |
cancel-in-progress: true | |
env: | |
CYPRESS_LICENSE_KEY: ${{ secrets.CYPRESS_LICENSE_KEY }} | |
jobs: | |
e2e: | |
name: E2E Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/hydrogen # 18.x | |
cache: "yarn" | |
- name: Build | |
run: | | |
yarn install --frozen-lockfile | |
composer install --no-dev --prefer-dist --no-progress --no-suggest | |
yarn run build | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install testing env | |
run: bash ./bin/e2e-env.sh | |
- name: Run Cypress tests | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true | |
uses: cypress-io/github-action@v6 | |
with: | |
working-directory: ./e2e-tests | |
env: host=localhost,port=8080 | |
browser: chrome |