Add video bundle #220
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: Next.js E2E Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
check: | |
# Disable running this job on pull requests | |
# TODO: Enable this when the Cypress mock data is ready | |
if: false | |
name: E2E job with Cypress | |
runs-on: ubuntu-latest | |
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: Load environment variables | |
uses: cardinalby/export-env-action@v2 | |
with: | |
envFile: ".env.test" | |
- 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 |