forked from erigontech/erigon
-
Notifications
You must be signed in to change notification settings - Fork 41
48 lines (42 loc) · 1.7 KB
/
nightly-bridge-erc20.yml
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
name: Nightly - Bridge ERC20 L2->L1
on:
schedule:
- cron: '0 1 * * *' # run at 1am
workflow_dispatch:
jobs:
build-and-run:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- profile_name: "network8"
l1_ep: "https://rpc.eu-central-1.gateway.fm/v4/ethereum/non-archival/sepolia"
l2_ep: "http://34.175.214.161:18124"
bridge_ep: "http://34.175.214.161:18080"
l1_pk_secret_name: "L1_SEPOLIA_FUNDED_PRIVATE_KEY"
l2_pk_secret_name: "NETWORK5_PRIVATE_KEY_0X126"
bridge_addr: "0x27DAeD0badd500740762d1792F3277a7F3DAdd79"
steps:
- name: Clone bridge repository
run: git clone --recurse-submodules -j8 https://github.com/0xPolygonHermez/zkevm-bridge-service.git -b feature/test_bridge_messages_real_network-v2 bridge
- name: Build docker image
run: |
cd bridge
make build-docker-e2e-real_network
- name: Run test ERC20 Bridge
run: |
#!/bin/bash
cd bridge
mkdir tmp
cat <<EOF > ./tmp/test.toml
TestAddrPrivate= "${{ secrets[matrix.l1_pk_secret_name] }}"
TestL1AddrPrivate="${{ secrets[matrix.l1_pk_secret_name] }}"
TestL2AddrPrivate="${{ secrets[matrix.l1_pk_secret_name] }}"
[ConnectionConfig]
L1NodeURL="${{ matrix.l1_ep }}"
L2NodeURL="${{ matrix.l2_ep }}"
BridgeURL="${{ matrix.bridge_ep }}"
L1BridgeAddr="${{ matrix.bridge_addr }}"
L2BridgeAddr="${{ matrix.bridge_addr }}"
EOF
docker run --volume "./tmp/:/config/" --env BRIDGE_TEST_CONFIG_FILE=/config/test.toml bridge-e2e-realnetwork-erc20