Skip to content

build: implement integration test for zksync contracts #4

build: implement integration test for zksync contracts

build: implement integration test for zksync contracts #4

name: ZKSync Integration Test
on:
push:
branches:
- main
- develop
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
Test:
runs-on: ubuntu-latest
environment: Test
steps:
- uses: actions/checkout@v4
# Ethereum Setup
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Install Forge
run: |
cd contracts/ethereum
forge install
# ZKSync Setup
- name: Install ZKSync libs
run: |
cd ./contracts/zksync/ && yarn install
# Run Dockerized L1-L2
- name: Setup Dockerized L1-L2
run: |
git clone https://github.com/matter-labs/local-setup.git
cd local-setup
./start.sh &
# # Build Ethereum Contract
# - name: Build Ethereum Contract
# run: |
# make ethereum-build
# # Build Starknet Contract
# - name: Build ZKSync Contract
# run: |
# make zksync-build
#zksync-test-integration:
# @make ethereum-build && make zksync-build && \
# . ./contracts/ethereum/test/.env.test && . ./contracts/zksync/test/.env.test && \
# . ./contracts/ethereum/deploy.sh && \
# . ./contracts/zksync/deploy.sh && \
# . ./contracts/ethereum/set_zksync_escrow.sh && \
# . ./contracts/zksync/test/set_order.sh && \
# . ./contracts/zksync/test/transfer.sh && \
# . ./contracts/zksync/test/claim_payment.sh
# Deploy PaymentRegistry, Escrow, set escrow, and test complete flow
- name: Deploy and test complete flow
run: |
echo asd
pwd
ls -la
cat Makefile
echo qwe
make zksync-test-integration: