fix(plugin-testing): missing babel-preset-app dependency (#4091) #2590
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: Cypress Test | |
# Controls when the action will run. | |
on: | |
# Triggers unit test on push events for the main branch to collect unit test coverage | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
e2e-test: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Pnpm | |
run: corepack enable | |
- name: Turbo Cache | |
id: turbo-cache | |
uses: actions/cache@v3 | |
with: | |
path: .turbo | |
key: turbo-${{ github.ref_name }}-${{ github.sha }} | |
restore-keys: | | |
turbo-${{ github.ref_name }}- | |
turbo- | |
- name: Install Dependencies | |
run: pnpm install --ignore-scripts --frozen-lockfile | |
- name: Install cypress | |
run: npx cypress install | |
- name: Prepare | |
if: ${{steps.docs-change.outputs.DOCS_CHANGE != 'docs only change'}} | |
run: pnpm run prepare | |
- name: Run cypress test | |
uses: cypress-io/github-action@v4 | |
with: | |
install: false | |
start: sh scripts/dev-project.sh | |
wait-on: 'http://localhost:3001,http://localhost:3002,http://localhost:3003/index.js' | |
wait-on-timeout: 600 | |
working-directory: tests | |
spec: cypress/e2e/**/*.cy.js | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
# Recommended: pass the GitHub token lets this action correctly | |
# determine the unique run id necessary to re-run the checks | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |