-
Notifications
You must be signed in to change notification settings - Fork 47
70 lines (61 loc) · 1.5 KB
/
e2e-tests.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
on:
push:
branches:
- main
paths:
- "web/webapp/**"
pull_request:
branches:
- main
paths:
- "web/webapp/**"
types:
- opened
- synchronize
- reopened
- ready_for_review
name: e2e-tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
e2e-tests:
name: End-to-end tests
if: github.event.pull_request.draft == false
runs-on: buildjet-16vcpu-ubuntu-2204
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Setup and build
uses: ./.github/actions/setup-and-build
- name: Cache Cypress
uses: actions/cache@v2
with:
path: ~/.cache/Cypress
key: cypress-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
cypress-
- name: Install Cypress
run: |
(cd web/webapp && npx cypress install)
# - name: Build relayer
# run: |
# (cd relayer && pnpm install && pnpm build)
# - name: Build webapp
# run: |
# (cd web/webapp && pnpm install && pnpm build)
- name: Run end-to-end tests
run: |
source ./scripts/devenv.sh
cd web/webapp
pnpm run test:e2e