-
Notifications
You must be signed in to change notification settings - Fork 16
91 lines (77 loc) · 2.75 KB
/
build.yaml
File metadata and controls
91 lines (77 loc) · 2.75 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
89
90
91
name: Build
on:
push:
branches:
- main
paths:
- 'staking-dashboard/**'
- 'atp-indexer/**'
- 'scripts/**'
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
actions: read
jobs:
build-frontend:
name: Build staking dashboard frontend
runs-on: ubuntu-latest
defaults:
run:
working-directory: staking-dashboard
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: staking-dashboard/yarn.lock
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Type check
run: yarn tsc --noEmit
- name: Lint
run: yarn lint || true # Don't fail on lint warnings for now
- name: Build (dry run with mock addresses)
env:
# Mock addresses for build validation only
VITE_ATP_FACTORY_ADDRESS: "0x0000000000000000000000000000000000000001"
VITE_ATP_FACTORY_AUCTION_ADDRESS: "0x0000000000000000000000000000000000000002"
VITE_ATP_REGISTRY_ADDRESS: "0x0000000000000000000000000000000000000003"
VITE_ATP_REGISTRY_AUCTION_ADDRESS: "0x0000000000000000000000000000000000000004"
VITE_STAKING_REGISTRY_ADDRESS: "0x0000000000000000000000000000000000000005"
VITE_ATP_NON_WITHDRAWABLE_STAKER_ADDRESS: "0x0000000000000000000000000000000000000007"
VITE_ATP_WITHDRAWABLE_STAKER_ADDRESS: "0x0000000000000000000000000000000000000007"
VITE_ATP_WITHDRAWABLE_AND_CLAIMABLE_STAKER_ADDRESS: "0x0000000000000000000000000000000000000007"
VITE_GENESIS_SEQUENCER_SALE_ADDRESS: "0x0000000000000000000000000000000000000008"
VITE_GOVERNANCE_ADDRESS: "0x0000000000000000000000000000000000000009"
VITE_GSE_ADDRESS: "0x000000000000000000000000000000000000000a"
VITE_CHAIN_ID: "1"
VITE_RPC_URL: "https://ethereum-rpc.publicnode.com"
VITE_API_HOST: "http://localhost:42068"
VITE_SAFE_API_KEY: "0"
VITE_WALLETCONNECT_PROJECT_ID: "0"
run: yarn build
build-indexer:
name: Build ATP indexer backend
runs-on: ubuntu-latest
defaults:
run:
working-directory: atp-indexer
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: atp-indexer/yarn.lock
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Bootstrap (generate providers.json)
run: yarn bootstrap
- name: Generate Ponder types
run: yarn codegen