-
Notifications
You must be signed in to change notification settings - Fork 47
221 lines (209 loc) · 8.32 KB
/
Copy pathchecks.yml
File metadata and controls
221 lines (209 loc) · 8.32 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
name: Checks
on:
pull_request:
types: [opened, synchronize]
env:
NEXT_PUBLIC_BALANCER_API_URL: https://test-api-v3.balancer.fi/graphql
NEXT_PUBLIC_WALLET_CONNECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_ID }}
NEXT_PRIVATE_ALCHEMY_KEY: ${{ secrets.PRIVATE_ALCHEMY_KEY }}
NEXT_PRIVATE_DRPC_KEY: ${{ secrets.PRIVATE_DRPC_KEY }}
TEST_ACCOUNT_MNEMONIC: ${{ secrets.TEST_ACCOUNT_MNEMONIC }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
SLACK_BOT_TOKEN: ${{secrets.SLACK_BOT_TOKEN}}
jobs:
# Skip this job as it is already part of the E2E-Smoke-Test job
# Build:
# runs-on: ubuntu-latest
# timeout-minutes: 10
# steps:
# - uses: actions/checkout@v5
# - name: Setup
# uses: ./.github/actions/setup
# - name: Run build
# env:
# NODE_OPTIONS: "--max_old_space_size=4096"
# run: pnpm run build
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup
uses: ./.github/actions/setup
- name: Run lint
run: pnpm lint
- name: Run prettier
run: pnpm prettier
- name: Run stylelint
run: pnpm stylelint
Unit-Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup
uses: ./.github/actions/setup
- name: Run typecheck
env:
NODE_OPTIONS: '--max_old_space_size=6144'
run: pnpm typecheck
- name: Run unit tests
run: pnpm test:unit
# Uncomment to debug turborepo summary when running with --summarize option
# Context: https://turbo.build/repo/docs/crafting-your-repository/caching#using-run-summaries
# - uses: actions/upload-artifact@v4
# with:
# name: unit-turbo-summary
# path: |
# ./.turbo/runs/
# retention-days: 30
Integration-Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup
uses: ./.github/actions/setup
- name: Set up foundry (includes anvil)
uses: foundry-rs/foundry-toolchain@908c540300062bd5a7e473851cdb4282204cee09 # v1
# with:
# cache: false # Disable cache after foundry-toolchain upgrade
- name: Run integration tests
run: pnpm test:integration
E2E-Smoke-Test-Balancer:
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.62.1-noble@sha256:dcc5531e97840b9b5e794f2814476b21571c5124a3fca2267d73041f56e7580e
env:
NEXT_PUBLIC_PROJECT_ID: balancer
PLAYWRIGHT_BROWSERS_PATH: /ms-playwright
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup
uses: ./.github/actions/setup
- name: Run Playwright smoke tests (Balancer)
run: pnpm test:e2e:build:bal
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: ${{ !cancelled() }}
with:
name: playwright-smoke-report-bal
path: |
./packages/e2e-tests/playwright-report/
retention-days: 30
E2E-Smoke-Test-Beets:
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.62.1-noble@sha256:dcc5531e97840b9b5e794f2814476b21571c5124a3fca2267d73041f56e7580e
env:
NEXT_PUBLIC_PROJECT_ID: beets
NEXT_PUBLIC_BALANCER_API_URL: https://backend-v3.beets-ftm-node.com/
PLAYWRIGHT_BROWSERS_PATH: /ms-playwright
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup
uses: ./.github/actions/setup
- name: Run Playwright smoke tests (Beets)
run: pnpm test:e2e:build:beets
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: ${{ !cancelled() }}
with:
name: playwright-smoke-report-beets
path: |
./packages/e2e-tests/playwright-report/
retention-days: 30
E2E-Smoke-Test-Analytics:
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.62.1-noble@sha256:dcc5531e97840b9b5e794f2814476b21571c5124a3fca2267d73041f56e7580e
env:
PLAYWRIGHT_BROWSERS_PATH: /ms-playwright
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup
uses: ./.github/actions/setup
- name: Run Playwright smoke tests (Analytics)
run: pnpm test:e2e:build:analytics
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: ${{ !cancelled() }}
with:
name: playwright-smoke-report-analytics
path: |
./packages/e2e-tests/playwright-report/
retention-days: 30
E2E-Dev-Test-Balancer-1:
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.62.1-noble@sha256:dcc5531e97840b9b5e794f2814476b21571c5124a3fca2267d73041f56e7580e
env:
NEXT_PUBLIC_PROJECT_ID: balancer
PLAYWRIGHT_BROWSERS_PATH: /ms-playwright
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup
uses: ./.github/actions/setup
- name: Set up foundry (includes anvil)
uses: foundry-rs/foundry-toolchain@908c540300062bd5a7e473851cdb4282204cee09 # v1
- name: Start anvil fork in mainnet
run: anvil --mnemonic "${{ env.TEST_ACCOUNT_MNEMONIC }}" --fork-url "https://lb.drpc.live/ethereum/${{ env.NEXT_PRIVATE_DRPC_KEY }}" --port 8545 &
- name: Run Playwright dev tests (Balancer part 1)
run: pnpm test:e2e:dev:bal:1
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: ${{ !cancelled() }}
with:
name: playwright-dev-report-bal-1
path: |
./packages/e2e-tests/playwright-report/
retention-days: 30
E2E-Dev-Test-Balancer-2:
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.62.1-noble@sha256:dcc5531e97840b9b5e794f2814476b21571c5124a3fca2267d73041f56e7580e
env:
NEXT_PUBLIC_PROJECT_ID: balancer
PLAYWRIGHT_BROWSERS_PATH: /ms-playwright
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup
uses: ./.github/actions/setup
- name: Set up foundry (includes anvil)
uses: foundry-rs/foundry-toolchain@908c540300062bd5a7e473851cdb4282204cee09 # v1
- name: Start anvil fork in mainnet
run: anvil --mnemonic "${{ env.TEST_ACCOUNT_MNEMONIC }}" --fork-url "https://lb.drpc.live/ethereum/${{ env.NEXT_PRIVATE_DRPC_KEY }}" --port 8545 &
- name: Run Playwright dev tests (Balancer part 2)
run: pnpm test:e2e:dev:bal:2
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: ${{ !cancelled() }}
with:
name: playwright-dev-report-bal-2
path: |
./packages/e2e-tests/playwright-report/
retention-days: 30
E2E-Dev-Test-Beets:
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.62.1-noble@sha256:dcc5531e97840b9b5e794f2814476b21571c5124a3fca2267d73041f56e7580e
env:
NEXT_PUBLIC_PROJECT_ID: beets
NEXT_PUBLIC_BALANCER_API_URL: https://backend-v3.beets-ftm-node.com/
PLAYWRIGHT_BROWSERS_PATH: /ms-playwright
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup
uses: ./.github/actions/setup
- name: Set up foundry (includes anvil)
uses: foundry-rs/foundry-toolchain@908c540300062bd5a7e473851cdb4282204cee09 # v1
- name: Start anvil fork in sonic
run: anvil --mnemonic "${{ env.TEST_ACCOUNT_MNEMONIC }}" --fork-url "https://lb.drpc.live/sonic/${{ env.NEXT_PRIVATE_DRPC_KEY }}" --port 8545 &
- name: Run Playwright dev tests (Beets)
run: pnpm test:e2e:dev:beets
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: ${{ !cancelled() }}
with:
name: playwright-dev-report-beets
path: |
./packages/e2e-tests/playwright-report/
retention-days: 30