From 17812341b8af9ee14d8b10a18309ad0ca6b52ae2 Mon Sep 17 00:00:00 2001 From: Juan Rigada <62958725+Jrigada@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:02:18 -0300 Subject: [PATCH] chore: Add aave test suite as a cronjob (#779) * add aave as a cronjob * Change time to test * TEST * Adjust timing --- .github/workflows/test.yml | 2 +- .github/workflows/zk-aave-test.yml | 52 ++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/zk-aave-test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b535cb275..4a2f8caa7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -143,7 +143,7 @@ jobs: RUST_BACKTRACE: full TEST_MAINNET_URL: http://localhost:8011 run: | - ZK_DEBUG_HISTORICAL_BLOCK_HASHES=5 cargo nextest run --package '*' --lib --test '*' --filter-expr 'test(~zk)' + ZK_DEBUG_HISTORICAL_BLOCK_HASHES=5 cargo nextest run --package '*' --lib --test '*' --filter-expr 'test(~zk) and not test(~test_zk_aave_di)' check-ci-install: name: CI install diff --git a/.github/workflows/zk-aave-test.yml b/.github/workflows/zk-aave-test.yml new file mode 100644 index 000000000..8f4d082a1 --- /dev/null +++ b/.github/workflows/zk-aave-test.yml @@ -0,0 +1,52 @@ +name: Weekly ZkSync Aave Test + +on: + schedule: + # Run every Tuesday at 9:00 UTC + - cron: '0 9 * * 2' + workflow_dispatch: # Allows manual triggering + +env: + TARGET_RUST_VERSION: stable + CARGO_TERM_COLOR: always + +jobs: + zk-aave-test: + runs-on: ubuntu-22.04-github-hosted-16core + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Install Rust + uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: ${{ env.TARGET_RUST_VERSION }} + + - name: Install cargo-nextest + uses: taiki-e/install-action@nextest + + - name: Run anvil-zksync + uses: dutterbutter/anvil-zksync-action@v1.1.0 + with: + mode: fork + forkUrl: mainnet + log: info + logFilePath: anvil_zksync.log + target: x86_64-unknown-linux-gnu + releaseTag: v0.2.1 + + - name: Setup Git config + run: | + git config --global user.name "GitHub Actions Bot" + git config --global user.email "<>" + git config --global url."https://github.com/".insteadOf "git@github.com:" + + - name: Run zk-aave test + env: + RUST_BACKTRACE: full + TEST_MAINNET_URL: http://localhost:8011 + run: | + ZK_DEBUG_HISTORICAL_BLOCK_HASHES=5 cargo nextest run --package '*' --lib --test '*' --filter-expr 'test(~test_zk_aave_di)' \ No newline at end of file