-
Notifications
You must be signed in to change notification settings - Fork 11
88 lines (84 loc) · 2.4 KB
/
Copy pathmain.yml
File metadata and controls
88 lines (84 loc) · 2.4 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Continuous Build
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- production
- dev
jobs:
documentation:
runs-on: ubuntu-latest
steps:
- name: Clone api3-dao-dashboard
uses: actions/checkout@v6
- name: Check hyperlinks
uses: gaurav-nelson/github-action-markdown-link-check@v1
lint-test:
runs-on: ubuntu-latest
steps:
- name: Clone api3-dao-dashboard
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
- name: Lint
run: pnpm lint
- name: Compile
run: pnpm tsc
- name: Test
run: pnpm test
cypress:
runs-on: ubuntu-latest
steps:
- name: Clone api3-dao-dashboard
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'pnpm'
- name: Install Dependencies
run: |
pnpm install
pnpm cypress install
- name: Increase file watcher limit
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- name: Prepare DAO contracts
run: pnpm eth:prepare-dao-contracts-for-hardhat --github-actions
- name: Use Node 16 for DAO contracts
uses: actions/setup-node@v6
with:
node-version: 16
- name: Bootstrap DAO contracts
run: cd dao-contracts && npm run bootstrap
- name: Restore to newer version of Node
uses: actions/setup-node@v6
with:
node-version: 24
- name: Cypress tests
env:
REACT_APP_NODE_ENV: development
REACT_APP_PROJECT_ID: e7e6e90622ec8e65c4d02e829a68529a
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
REACT_APP_MAINNET_PROVIDER_URL: ${{ secrets.REACT_APP_MAINNET_PROVIDER_URL }}
run: pnpm percy exec -- pnpm ci:cypress
timeout-minutes: 60
- name: Store artifacts
uses: actions/upload-artifact@v7
if: always()
with:
name: cypress-artifacts
path: cypress/screenshots
if-no-files-found: ignore