-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.07 KB
/
test.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
name: redeem
on:
push:
branches:
- "main"
jobs:
redeem:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: yarn
- name: Run unit tests
run: yarn test
- name: Install xvfb and fluxbox
run: |
sudo apt-get install --no-install-recommends -y \
xvfb \
fluxbox
- name: Run xvfb and fluxbox
run: |
Xvfb :0 -screen 0 1024x768x24 -listen tcp -ac &
fluxbox &
env:
DISPLAY: :0.0
- name: Run e2e tests
uses: cypress-io/github-action@v6
with:
install: false
headed: true
command: yarn cypress:run
browser: chrome
build: yarn build
start: yarn start
wait-on: "http://localhost:3000"
env:
CYPRESS_ADMIN_RPC: ${{ secrets.ADMIN_RPC }}
CYPRESS_PUBLIC_RPC: ${{ secrets.PUBLIC_RPC }}
NEXT_PUBLIC_TENDERLY_RPC_URL: ${{ secrets.PUBLIC_RPC }}
DISPLAY: :0.0