-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 963 Bytes
/
redeem.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
name: redeem
on:
push:
branches:
- "main"
jobs:
redeem:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- 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:
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