Skip to content

Introduce Cypress

Introduce Cypress #2

Workflow file for this run

name: Next.js E2E Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
check:
name: E2E job with Cypress
runs-on: ubuntu-latest
env: NEXT_PUBLIC_APP_URL=https://localhost:3000

Check failure on line 15 in .github/workflows/e2e-test.yml

View workflow run for this annotation

GitHub Actions / Next.js E2E Tests

Invalid workflow file

The workflow is not valid. .github/workflows/e2e-test.yml (Line: 15, Col: 10): Unexpected value 'NEXT_PUBLIC_APP_URL=https://localhost:3000'
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0 # Required to retrieve git history
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: yarn install --frozen-lockfile --no-progress --non-interactive
- name: Build the Nextjs app and run Cypress tests
uses: cypress-io/github-action@v4
with:
install: false
build: yarn build
start: yarn start
wait-on: http://localhost:3000
runTests: yarn cypress:run
browser: chrome