Skip to content

Commit d8f7ecb

Browse files
committed
Add CI for custom gas token chains
1 parent e21f255 commit d8f7ecb

1 file changed

Lines changed: 40 additions & 2 deletions

File tree

.github/workflows/test-all.yml

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ env:
1515
TransferTo: '0x3f1Eae7D46d88F08fc2F8ed27FCb2AB183EB2d0E'
1616

1717
jobs:
18-
test-all:
19-
name: Test all tutorials
18+
test-all-eth:
19+
name: Test all tutorials (ETH-based chain)
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout
@@ -37,3 +37,41 @@ jobs:
3737

3838
- name: Test
3939
run: yarn run testAll
40+
41+
test-all-custom-gas:
42+
name: Test all tutorials (Custom-gas-token chain)
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Checkout
46+
uses: actions/checkout@v4
47+
48+
- name: Restore node_modules
49+
uses: OffchainLabs/actions/node-modules/install@main
50+
51+
- name: Set up the local node
52+
# https://github.com/OffchainLabs/actions/blob/feat-simplify/run-nitro-test-node/action.yml
53+
uses: OffchainLabs/actions/run-nitro-test-node@feat-simplify
54+
with:
55+
nitro-testnode-ref: release
56+
args: --tokenbridge --l3node --l3-token-bridge --l3-fee-token
57+
58+
- name: Copy .env
59+
run: cp ./.env-sample ./.env
60+
61+
- name: Modify custom network file
62+
# Some contract addresses are different when using a custom gas token chain
63+
run: >
64+
jq -c '
65+
.[1].nativeToken = "0xE069078bA9ACCE4eeAE609d8754515Cf13dd6706" |
66+
.[1].ethBridge.rollup = "0xA7c5B54f271844ff9cA8B5da77500180d1aD8899" |
67+
.[1].tokenBridge.parentGatewayRouter = "0x0C085152C2799834fc1603533ff6916fa1FdA302" |
68+
.[1].tokenBridge.parentErc20Gateway = "0x59156b0596689D965Ba707E160e5370AF22461a0" |
69+
.[1].tokenBridge.parentCustomGateway = "0xCe02eA568090ae7d5184B0a98df90f6aa69C1552" |
70+
.[1].tokenBridge.parentWethGateway = "0x0000000000000000000000000000000000000000" |
71+
.[1].tokenBridge.childWethGateway = "0x0000000000000000000000000000000000000000" |
72+
.[1].tokenBridge.parentWeth = "0x0000000000000000000000000000000000000000" |
73+
.[1].tokenBridge.childWeth = "0x0000000000000000000000000000000000000000"
74+
' customNetwork.json > tmp.customNetwork.json && mv tmp.customNetwork.json customNetwork.json
75+
76+
- name: Test
77+
run: yarn run testAll

0 commit comments

Comments
 (0)