Skip to content

Commit

Permalink
add gitaction nightly-bridge-erc20 (#606)
Browse files Browse the repository at this point in the history
* add gitaction nightly-bridge-erc20

* add gitaction nightly-bridge-erc20
  • Loading branch information
joanestebanr authored Jun 13, 2024
1 parent 145b03a commit 5e37493
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/nightly-bridge-erc20.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Nightly - Bridge ERC20 L2->L1

on:
schedule:
- cron: '0 1 * * *' # run at 1am to stagger tests
workflow_dispatch:

jobs:
build-and-run:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- profile_name: "network5"
l1_ep: "https://rpc.eu-central-1.gateway.fm/v4/ethereum/non-archival/sepolia"
l2_ep: "http://34.175.214.161:8500"
bridge_ep: "http://34.175.214.161:8085"
l1_pk_secret_name: "L1_SEPOLIA_FUNDED_PRIVATE_KEY"
l2_pk_secret_name: "NETWORK5_PRIVATE_KEY"
bridge_addr: "0xb566BE17B22404BD46F389030ec5592F8ffAde12"

steps:
- name: Clone bridge repository
uses: actions/checkout@v3
with:
repository: git@github.com:0xPolygonHermez/zkevm-bridge-service.git
ref: feature/cdk263-test_bridge_real_network
token: ${{ secrets.GITHUB_TOKEN }}

- name: Build docker image
run: |
make build-docker-e2e-real_network
- name: Run test ERC20 Bridge
run: |
#!/bin/bash
mkdir config
cat <<EOF > ./tmp_profiles.json
TestAddrPrivate= "${{ 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 "./config/:/config/" --env BRIDGE_TEST_CONFIG_FILE=/config/test.toml bridge-e2e-realnetwork-erc20

0 comments on commit 5e37493

Please sign in to comment.