-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (36 loc) · 1017 Bytes
/
testing-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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Cypress Tests
on:
push:
paths:
- 'client/**'
- '.github/workflows/testing-e2e.yml'
workflow_dispatch:
jobs:
cypress-run:
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ${{github.workspace}}/client
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 18.17
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install dependencies
run: yarn install --immutable
- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: yarn build
start: yarn start
command: "yarn test:e2e"
working-directory: client
install: false
env:
NEXT_PUBLIC_MAPBOX_API_TOKEN: ${{ secrets.NEXT_PUBLIC_MAPBOX_API_TOKEN }}
NEXT_PUBLIC_API_URL: ${{ secrets.NEXT_PUBLIC_API_URL }}
NODE_ENV: production