Skip to content

Commit f2996a8

Browse files
Merge branch 'dev'
2 parents a1924be + 8067ae5 commit f2996a8

309 files changed

Lines changed: 31396 additions & 20340 deletions

File tree

Some content is hidden

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

.github/workflows/explorer-deploy-preview.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ on:
44
pull_request:
55
branches:
66
- dev
7-
push:
8-
branches:
9-
- dev
7+
paths:
8+
- explorer/**
109

1110
jobs:
1211
deploy-explorer-preview:

.github/workflows/smart-contracts.yml

Lines changed: 122 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,34 @@ jobs:
2929
with:
3030
submodules: recursive
3131

32+
- name: Install Pnpm
33+
uses: pnpm/action-setup@v2
34+
with:
35+
version: 8
36+
run_install: false
37+
38+
- name: Install Node.js
39+
uses: actions/setup-node@v3
40+
with:
41+
node-version: 18
42+
cache: pnpm
43+
44+
- name: Get pnpm store directory
45+
shell: bash
46+
run: |
47+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
48+
49+
- uses: actions/cache@v3
50+
name: Setup pnpm cache
51+
with:
52+
path: ${{ env.STORE_PATH }}
53+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
54+
restore-keys: |
55+
${{ runner.os }}-pnpm-store-
56+
57+
- name: Install dependencies
58+
run: pnpm install --frozen-lockfile
59+
3260
- name: Install Foundry
3361
uses: foundry-rs/foundry-toolchain@v1
3462

@@ -61,6 +89,34 @@ jobs:
6189
with:
6290
submodules: recursive
6391

92+
- name: Install Pnpm
93+
uses: pnpm/action-setup@v2
94+
with:
95+
version: 8
96+
run_install: false
97+
98+
- name: Install Node.js
99+
uses: actions/setup-node@v3
100+
with:
101+
node-version: 18
102+
cache: pnpm
103+
104+
- name: Get pnpm store directory
105+
shell: bash
106+
run: |
107+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
108+
109+
- uses: actions/cache@v3
110+
name: Setup pnpm cache
111+
with:
112+
path: ${{ env.STORE_PATH }}
113+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
114+
restore-keys: |
115+
${{ runner.os }}-pnpm-store-
116+
117+
- name: Install dependencies
118+
run: pnpm install --frozen-lockfile
119+
64120
- name: Install Foundry
65121
uses: foundry-rs/foundry-toolchain@v1
66122

@@ -83,6 +139,34 @@ jobs:
83139
with:
84140
submodules: recursive
85141

142+
- name: Install Pnpm
143+
uses: pnpm/action-setup@v2
144+
with:
145+
version: 8
146+
run_install: false
147+
148+
- name: Install Node.js
149+
uses: actions/setup-node@v3
150+
with:
151+
node-version: 18
152+
cache: pnpm
153+
154+
- name: Get pnpm store directory
155+
shell: bash
156+
run: |
157+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
158+
159+
- uses: actions/cache@v3
160+
name: Setup pnpm cache
161+
with:
162+
path: ${{ env.STORE_PATH }}
163+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
164+
restore-keys: |
165+
${{ runner.os }}-pnpm-store-
166+
167+
- name: Install dependencies
168+
run: pnpm install --frozen-lockfile
169+
86170
- name: Install Foundry
87171
uses: foundry-rs/foundry-toolchain@v1
88172

@@ -104,7 +188,7 @@ jobs:
104188
uses: terencetcf/github-actions-lcov-minimum-coverage-checker@v1
105189
with:
106190
coverage-file: lcov.info
107-
minimum-coverage: 96
191+
minimum-coverage: 95
108192

109193
- name: Add coverage summary
110194
run: |
@@ -168,6 +252,39 @@ jobs:
168252
if: steps.check-changes.outputs.changed == 'true'
169253
run: pnpm install --frozen-lockfile
170254

255+
- name: Install Pnpm
256+
if: steps.check-changes.outputs.changed == 'true'
257+
uses: pnpm/action-setup@v2
258+
with:
259+
version: 8
260+
run_install: false
261+
262+
- name: Install Node.js
263+
if: steps.check-changes.outputs.changed == 'true'
264+
uses: actions/setup-node@v3
265+
with:
266+
node-version: 18
267+
cache: pnpm
268+
269+
- name: Get pnpm store directory
270+
if: steps.check-changes.outputs.changed == 'true'
271+
shell: bash
272+
run: |
273+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
274+
275+
- uses: actions/cache@v3
276+
if: steps.check-changes.outputs.changed == 'true'
277+
name: Setup pnpm cache
278+
with:
279+
path: ${{ env.STORE_PATH }}
280+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
281+
restore-keys: |
282+
${{ runner.os }}-pnpm-store-
283+
284+
- name: Install dependencies
285+
if: steps.check-changes.outputs.changed == 'true'
286+
run: pnpm install --frozen-lockfile
287+
171288
- name: Install Foundry
172289
if: steps.check-changes.outputs.changed == 'true'
173290
uses: foundry-rs/foundry-toolchain@v1
@@ -197,16 +314,16 @@ jobs:
197314
if: steps.check-changes.outputs.changed == 'true'
198315
run: pnpm run check:upgradeability linea
199316

200-
- name: Create Arbitrum testnet env file
317+
- name: Create Arbitrum Sepolia env file
201318
if: steps.check-changes.outputs.changed == 'true'
202319
run: |
203320
rm .env
204-
cp ./env/.env.arbitrum-goerli .env
321+
cp ./env/.env.arbitrum-sepolia .env
205322
echo INFURA_KEY=${{ secrets.INFURA_KEY }} >> .env
206323
207-
- name: Check contracts upgradeability on Arbitrum testnet
324+
- name: Check contracts upgradeability on Arbitrum Sepolia
208325
if: steps.check-changes.outputs.changed == 'true'
209-
run: pnpm run check:upgradeability arbitrum-goerli
326+
run: pnpm run check:upgradeability arbitrum-sepolia
210327

211328
- name: Create Arbitrum mainnet env file
212329
if: steps.check-changes.outputs.changed == 'true'
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build website
1+
name: Build tutorial
22

33
on:
44
pull_request:
@@ -13,12 +13,12 @@ on:
1313
- release/*
1414

1515
jobs:
16-
build-website:
16+
build-tutorial:
1717
runs-on: ubuntu-latest
1818

1919
defaults:
2020
run:
21-
working-directory: website
21+
working-directory: tutorial
2222

2323
steps:
2424
- name: Check out the repo
@@ -57,5 +57,5 @@ jobs:
5757

5858
- name: Add build summary
5959
run: |
60-
echo "## Website build result" >> $GITHUB_STEP_SUMMARY
60+
echo "## Tutorial build result" >> $GITHUB_STEP_SUMMARY
6161
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: Deploy preview tutorial
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- dev
7+
paths:
8+
- tutorial/**
9+
10+
jobs:
11+
deploy-tutorial-preview:
12+
runs-on: ubuntu-latest
13+
14+
defaults:
15+
run:
16+
working-directory: tutorial
17+
18+
steps:
19+
- name: Check out the repo
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- id: check-changes
25+
run: |
26+
if [ -n "$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} | grep '^tutorial/')" ]; then
27+
echo "::set-output name=changed::true"
28+
else
29+
echo "::set-output name=changed::false"
30+
fi
31+
32+
- name: Install Pnpm
33+
if: steps.check-changes.outputs.changed == 'true'
34+
uses: pnpm/action-setup@v2
35+
with:
36+
version: 8
37+
run_install: false
38+
39+
- name: Install Node.js
40+
if: steps.check-changes.outputs.changed == 'true'
41+
uses: actions/setup-node@v3
42+
with:
43+
node-version: 18
44+
cache: pnpm
45+
46+
- name: Get pnpm store directory
47+
if: steps.check-changes.outputs.changed == 'true'
48+
shell: bash
49+
run: |
50+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
51+
52+
- uses: actions/cache@v3
53+
if: steps.check-changes.outputs.changed == 'true'
54+
name: Setup pnpm cache
55+
with:
56+
path: ${{ env.STORE_PATH }}
57+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
58+
restore-keys: |
59+
${{ runner.os }}-pnpm-store-
60+
61+
- name: Install dependencies
62+
if: steps.check-changes.outputs.changed == 'true'
63+
run: pnpm install --frozen-lockfile
64+
65+
- name: Build
66+
if: steps.check-changes.outputs.changed == 'true'
67+
run: pnpm run build:netlify
68+
env:
69+
VITE_WALLETCONNECT_PROJECT_ID: ${{ secrets.VITE_WALLETCONNECT_PROJECT_ID }}
70+
71+
- name: Deploy to Netlify
72+
if: steps.check-changes.outputs.changed == 'true'
73+
uses: nwtgck/actions-netlify@v2.0
74+
with:
75+
publish-dir: "./tutorial/dist"
76+
github-token: ${{ secrets.GITHUB_TOKEN }}
77+
deploy-message: "Deploy from GitHub Actions"
78+
enable-pull-request-comment: true
79+
enable-commit-comment: true
80+
overwrites-pull-request-comment: true
81+
env:
82+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
83+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID_TUTORIAL_STAGING }}
84+
timeout-minutes: 1
85+
86+
- name: Add tutorial deployment summary
87+
if: steps.check-changes.outputs.changed == 'true'
88+
run: |
89+
echo "## Tutorial staging deployment result" >> $GITHUB_STEP_SUMMARY
90+
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
91+
92+
- name: Add tutorial deployment summary
93+
if: steps.check-changes.outputs.changed == 'false'
94+
run: |
95+
echo "## Tutorial staging deployment result" >> $GITHUB_STEP_SUMMARY
96+
echo "✅ No change detected in the tutorial" >> $GITHUB_STEP_SUMMARY
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Deploy production tutorial
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- dev
8+
paths:
9+
- tutorial/**
10+
11+
jobs:
12+
deploy-tutorial-prod:
13+
runs-on: ubuntu-latest
14+
15+
defaults:
16+
run:
17+
working-directory: tutorial
18+
19+
steps:
20+
- name: Check out the repo
21+
uses: actions/checkout@v4
22+
23+
- name: Install Pnpm
24+
uses: pnpm/action-setup@v2
25+
with:
26+
version: 8
27+
run_install: false
28+
29+
- name: Install Node.js
30+
uses: actions/setup-node@v3
31+
with:
32+
node-version: 18
33+
cache: pnpm
34+
35+
- name: Get pnpm store directory
36+
shell: bash
37+
run: |
38+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
39+
40+
- uses: actions/cache@v3
41+
name: Setup pnpm cache
42+
with:
43+
path: ${{ env.STORE_PATH }}
44+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
45+
restore-keys: |
46+
${{ runner.os }}-pnpm-store-
47+
48+
- name: Install dependencies
49+
run: pnpm install --frozen-lockfile
50+
51+
- name: Build
52+
run: pnpm run build:netlify
53+
env:
54+
VITE_WALLETCONNECT_PROJECT_ID: ${{ secrets.VITE_WALLETCONNECT_PROJECT_ID }}
55+
56+
- name: Deploy tutorial to Netlify
57+
uses: netlify/actions/cli@master
58+
env:
59+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
60+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID_TUTORIAL }}
61+
with:
62+
args: deploy --dir=./tutorial/dist --filter tutorial --prod
63+
64+
- name: Add tutorial deployment summary
65+
run: |
66+
echo "## Tutorial production deployment result" >> $GITHUB_STEP_SUMMARY
67+
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)