Skip to content

Commit 3c69a0c

Browse files
LeonmanRollsclaude
andcommitted
Merge main branch into deploy-arweave
Resolved conflicts in package.json and pnpm-lock.yaml by keeping both permaweb-deploy and playwright-core dependencies. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2 parents 75603f6 + 0162813 commit 3c69a0c

File tree

141 files changed

+9785
-2168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+9785
-2168
lines changed

.github/actions/setup-playwright/action.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/actions/setup/action.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,3 @@ runs:
1717
- name: Install dependencies
1818
shell: bash
1919
run: pnpm install --frozen-lockfile
20-
21-
- name: Install Playwright Browsers and Dependencies
22-
shell: bash
23-
run: pnpm exec playwright install --with-deps

.github/workflows/pages-deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
6464
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
6565
wranglerVersion: 'v3.57.1'
66+
packageManager: 'pnpm'
6667
command: pages deploy --project-name=ens-app-v3
6768
secrets: |
6869
GITHUB_TOKEN

.github/workflows/test-wallet.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Wallet Tests (Container)
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
#all files
8+
- '**'
9+
10+
env:
11+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
12+
13+
jobs:
14+
wallets-container:
15+
name: wallets (container)
16+
timeout-minutes: 20
17+
runs-on: ubuntu-latest
18+
container:
19+
image: mcr.microsoft.com/playwright:v1.55.0-jammy
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Setup pnpm
24+
uses: pnpm/action-setup@v4
25+
with:
26+
version: 9.3.0
27+
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: 20
32+
cache: 'pnpm'
33+
34+
- name: Install dependencies
35+
run: pnpm install --frozen-lockfile
36+
37+
- name: Install system dependencies
38+
run: |
39+
apt-get update
40+
apt-get install -y parallel
41+
42+
- name: Verify Playwright installation
43+
run: |
44+
echo "Checking Playwright installation..."
45+
pnpm exec playwright --version
46+
47+
echo "Checking browser installations..."
48+
pnpm exec playwright show-report || true
49+
50+
echo "Cache contents:"
51+
ls -la ~/.cache/ms-playwright/ || echo "No cache found"
52+
53+
- name: Run wallet tests
54+
env:
55+
SECRET_WORDS: ${{ secrets.SECRET_WORDS }}
56+
run: |
57+
parallel --lb --halt now,success=1,fail=1 ::: \
58+
"pnpm dev" \
59+
"pnpm wait-on http://localhost:3000 && xvfb-run --auto-servernum pnpm e2e:wallet"
60+
61+
- uses: actions/upload-artifact@v4
62+
if: always()
63+
with:
64+
name: wallets-report-playwright-action
65+
path: |
66+
playwright-report/
67+
test-results/
68+
*.png
69+
retention-days: 30

.github/workflows/test.yaml

Lines changed: 91 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,45 @@ jobs:
4242
name: stateless-build
4343
path: stateless-build.tar
4444

45-
build-stateful:
45+
build-stateful-sepolia:
4646
runs-on: blacksmith-4vcpu-ubuntu-2404
4747
steps:
4848
- uses: actions/checkout@v4
4949
- uses: ./.github/actions/setup
5050

51-
- name: Build stateful and export
52-
run: pnpm build && pnpm export
51+
- name: Build stateful sepolia and export
52+
run: |
53+
export NEXT_PUBLIC_CHAIN_NAME=sepolia
54+
pnpm build && pnpm export
55+
56+
- name: Tar stateful sepolia files
57+
run: tar -cvf stateful-sepolia-build.tar out
58+
59+
- name: Upload stateful sepolia
60+
uses: actions/upload-artifact@v4
61+
with:
62+
name: stateful-sepolia-build
63+
path: stateful-sepolia-build.tar
64+
65+
build-stateful-mainnet:
66+
runs-on: blacksmith-4vcpu-ubuntu-2404
67+
steps:
68+
- uses: actions/checkout@v4
69+
- uses: ./.github/actions/setup
70+
71+
- name: Build stateful mainnet and export
72+
run: |
73+
export NEXT_PUBLIC_CHAIN_NAME=mainnet
74+
pnpm build && pnpm export
5375
54-
- name: Tar stateful files
55-
run: tar -cvf stateful-build.tar out
76+
- name: Tar stateful mainnet files
77+
run: tar -cvf stateful-mainnet-build.tar out
5678

57-
- name: Upload stateful
79+
- name: Upload stateful mainnet
5880
uses: actions/upload-artifact@v4
5981
with:
60-
name: stateful-build
61-
path: stateful-build.tar
82+
name: stateful-mainnet-build
83+
path: stateful-mainnet-build.tar
6284

6385
stateless:
6486
name: stateless (${{matrix.shard}})
@@ -98,11 +120,15 @@ jobs:
98120
27,
99121
28,
100122
29,
123+
30,
124+
31,
101125
]
102126
steps:
103127
- uses: actions/checkout@v4
104128
- uses: ./.github/actions/setup
105-
- uses: ./.github/actions/setup-playwright
129+
130+
- name: Install Playwright
131+
run: pnpm exec playwright install --with-deps chromium
106132

107133
- run: pnpm rebuild -r
108134

@@ -128,9 +154,9 @@ jobs:
128154
retention-days: 30
129155
overwrite: true
130156

131-
stateful:
132-
name: stateful (${{matrix.shard}})
133-
needs: build-stateful
157+
stateful-sepolia:
158+
name: stateful-sepolia (${{matrix.shard}})
159+
needs: build-stateful-sepolia
134160
timeout-minutes: 10
135161
runs-on: blacksmith-4vcpu-ubuntu-2404
136162
strategy:
@@ -139,30 +165,75 @@ jobs:
139165
steps:
140166
- uses: actions/checkout@v4
141167
- uses: ./.github/actions/setup
142-
- uses: ./.github/actions/setup-playwright
168+
169+
- name: Install Playwright
170+
run: pnpm exec playwright install --with-deps chromium
143171

144172
- run: pnpm rebuild -r
145173

146-
- name: Download build
174+
- name: Download sepolia build
147175
id: download
148176
uses: actions/download-artifact@v4
149177
with:
150-
name: stateful-build
178+
name: stateful-sepolia-build
151179

152-
- name: Untar files
153-
run: tar -xvf stateful-build.tar
180+
- name: Untar sepolia files
181+
run: tar -xvf stateful-sepolia-build.tar
154182

155-
- name: Run tests
183+
- name: Run sepolia tests
156184
run: |
157185
parallel --lb --halt now,success=1,fail=1 ::: \
158186
"pnpm wrangle" \
159-
"pnpm wait-on http://127.0.0.1:8788 && npx playwright test --shard=${{matrix.shard}}/${{strategy.job-total}} --project=stateful"
187+
"pnpm wait-on http://127.0.0.1:8788 && npx playwright test --shard=${{matrix.shard}}/${{strategy.job-total}} --project=stateful --grep-invert='@mainnet'"
188+
env:
189+
SECRET_WORDS: ${{ secrets.SECRET_WORDS }}
190+
191+
- uses: actions/upload-artifact@v4
192+
if: always()
193+
with:
194+
name: stateful-sepolia-report-${{matrix.shard}}
195+
path: playwright-report/
196+
retention-days: 30
197+
198+
stateful-mainnet:
199+
name: stateful-mainnet (${{matrix.shard}})
200+
needs: build-stateful-mainnet
201+
timeout-minutes: 10
202+
runs-on: blacksmith-4vcpu-ubuntu-2404
203+
strategy:
204+
matrix:
205+
shard: [1, 2, 3]
206+
steps:
207+
- uses: actions/checkout@v4
208+
- uses: ./.github/actions/setup
209+
210+
- name: Install Playwright
211+
run: pnpm exec playwright install --with-deps chromium
212+
213+
- run: |
214+
export NEXT_PUBLIC_CHAIN_NAME=mainnet
215+
pnpm rebuild -r
216+
217+
- name: Download mainnet build
218+
id: download
219+
uses: actions/download-artifact@v4
220+
with:
221+
name: stateful-mainnet-build
222+
223+
- name: Untar mainnet files
224+
run: tar -xvf stateful-mainnet-build.tar
225+
226+
- name: Run mainnet tests
227+
run: |
228+
parallel --lb --halt now,success=1,fail=1 ::: \
229+
"pnpm dev:mainnet" \
230+
"pnpm wait-on http://127.0.0.1:3000 && CHAIN=mainnet npx playwright test --shard=${{matrix.shard}}/${{strategy.job-total}} --project=stateful --grep='@mainnet'"
160231
env:
161232
SECRET_WORDS: ${{ secrets.SECRET_WORDS }}
162233

163234
- uses: actions/upload-artifact@v4
164235
if: always()
165236
with:
166-
name: stateful-report-${{matrix.shard}}
237+
name: stateful-mainnet-report-${{matrix.shard}}
167238
path: playwright-report/
168239
retention-days: 30

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,7 @@ tsconfig.vitest-temp.json
7373

7474
.dev.vars
7575

76-
certificates
76+
certificates
77+
78+
# Claude
79+
.claude

0 commit comments

Comments
 (0)