-
Notifications
You must be signed in to change notification settings - Fork 2
25 lines (24 loc) · 935 Bytes
/
e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: e2e tests
on: push
jobs:
cypress-run:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cypress run
uses: cypress-io/github-action@v6
with:
install-command: yarn install
build: yarn build
start: yarn start
wait-on: "http://localhost:3000"
browser: chrome
project: ./packages/frontend/e2e
config-file: ./cypress.config.js
env:
NEXT_CONTENTFUL_SPACE_ID: ${{secrets.NEXT_CONTENTFUL_SPACE_ID}}
NEXT_CONTENTFUL_ACCESS_TOKEN: ${{secrets.NEXT_CONTENTFUL_ACCESS_TOKEN}}
NEXT_CONTENTFUL_PREVIEW_ACCESS_TOKEN: ${{secrets.NEXT_CONTENTFUL_PREVIEW_ACCESS_TOKEN}}
NEXT_PUBLIC_CONTACT_FORM_ID: ${{secrets.NEXT_PUBLIC_CONTACT_FORM_ID}}
NEXT_PUBLIC_CONFIRM_VIRTUAL_ADOPTION_FORM_ID: ${{secrets.NEXT_PUBLIC_CONFIRM_VIRTUAL_ADOPTION_FORM_ID}}