Skip to content

Commit 7b65e43

Browse files
committed
feat(ci): add multiledger-channel test
Signed-off-by: Minh Huy Tran <[email protected]>
1 parent c41d9cc commit 7b65e43

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,25 @@ jobs:
4444
go run .
4545
docker stop ganache
4646
47+
- name: Multiledger Payment Channel
48+
working-directory: multiledger-channel
49+
env:
50+
KEY_DEPLOYER: "0x79ea8f62d97bc0591a4224c1725fca6b00de5b2cea286fe2e0bb35c5e76be46e"
51+
KEY_ALICE: "0x1af2e950272dd403de7a5760d41c6e44d92b6d02797e51810795ff03cc2cda4f"
52+
KEY_BOB: "0xf63d7d8e930bccd74e93cf5662fde2c28fd8be95edb70c73f1bdd863d07f412e"
53+
BALANCE: "10000000000000000000"
54+
CHAIN_A_PORT: "8545"
55+
CHAIN_B_PORT: "8546"
56+
CHAIN_A_ID: "1337"
57+
CHAIN_B_ID: "1338"
58+
run: |
59+
docker run --rm --name ganache-a --detach --publish $CHAIN_A_PORT:$CHAIN_A_PORT ${{ env.ganache-image }} --port $CHAIN_A_PORT --chain.chainId $CHAIN_A_ID --wallet.accounts $KEY_DEPLOYER,$BALANCE $KEY_ALICE,$BALANCE $KEY_BOB,$BALANCE --b=5
60+
docker run --rm --name ganache-b --detach --publish $CHAIN_B_PORT:$CHAIN_B_PORT ${{ env.ganache-image }} --port $CHAIN_B_PORT --chain.chainId $CHAIN_B_ID --wallet.accounts $KEY_DEPLOYER,$BALANCE $KEY_ALICE,$BALANCE $KEY_BOB,$BALANCE --b=5
61+
sleep 5
62+
go run .
63+
docker stop ganache-a
64+
docker stop ganache-b
65+
4766
- name: Payment Channel XLM
4867
working-directory: payment-channel-xlm
4968
run: |
@@ -106,7 +125,6 @@ jobs:
106125
./stopdfx.sh || true # stop any running dfx
107126
./startdeploy.sh
108127
109-
sleep 15
110128
go run ./
111129
112130
./stopdfx.sh || true

0 commit comments

Comments
 (0)