Merge pull request #14 from suissa/develop #37
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: End-to-End Tests | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '20' | |
- name: Install Dependencies | |
run: npm install | |
env: | |
cache-version: v1 | |
- name: Run Build | |
run: npx next build | |
- name: Update Cypress Cache | |
run: npx cypress cache clear | |
- name: Run Cypress Tests | |
uses: cypress-io/github-action@v2 | |
with: | |
start: npm start | |
wait-on: 'http://localhost:3000' | |
wait-on-timeout: 60 | |
config-file: cypress.config.ts |