-
Notifications
You must be signed in to change notification settings - Fork 16
39 lines (37 loc) · 1.26 KB
/
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
name: Synpress tests
on:
push:
branches: [cent-app/synpress-testing-setup, 'main']
jobs:
cypress-run:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c #@v3.6.0
with:
node-version: '18'
cache: yarn
- name: Synpress run
uses: cypress-io/github-action@v6
with:
working-directory: centrifuge-app
install-command: yarn
build: |
yarn build:fabric
yarn build:centjs
yarn build:centReact
cat .env-config/.env.development
yarn build:app --mode development
start: yarn preview
wait-on: 'http://[::1]:4173'
command: yarn e2e:run:ci
browser: chrome
config-file: synpress.config.ts
ci-build-id: '${{ github.sha }}-${{ github.workflow }}-${{ github.event_name }}'
env:
# pass the Cypress Cloud record key as an environment variable
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# pass GitHub token to allow accurately detecting a build vs a re-run build
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}