Skip to content

Commit 1781234

Browse files
authored
chore: Add aave test suite as a cronjob (#779)
* add aave as a cronjob * Change time to test * TEST * Adjust timing
1 parent 7b3c869 commit 1781234

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
RUST_BACKTRACE: full
144144
TEST_MAINNET_URL: http://localhost:8011
145145
run: |
146-
ZK_DEBUG_HISTORICAL_BLOCK_HASHES=5 cargo nextest run --package '*' --lib --test '*' --filter-expr 'test(~zk)'
146+
ZK_DEBUG_HISTORICAL_BLOCK_HASHES=5 cargo nextest run --package '*' --lib --test '*' --filter-expr 'test(~zk) and not test(~test_zk_aave_di)'
147147
148148
check-ci-install:
149149
name: CI install

.github/workflows/zk-aave-test.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Weekly ZkSync Aave Test
2+
3+
on:
4+
schedule:
5+
# Run every Tuesday at 9:00 UTC
6+
- cron: '0 9 * * 2'
7+
workflow_dispatch: # Allows manual triggering
8+
9+
env:
10+
TARGET_RUST_VERSION: stable
11+
CARGO_TERM_COLOR: always
12+
13+
jobs:
14+
zk-aave-test:
15+
runs-on: ubuntu-22.04-github-hosted-16core
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
with:
21+
submodules: recursive
22+
23+
- name: Install Rust
24+
uses: actions-rust-lang/setup-rust-toolchain@v1
25+
with:
26+
toolchain: ${{ env.TARGET_RUST_VERSION }}
27+
28+
- name: Install cargo-nextest
29+
uses: taiki-e/install-action@nextest
30+
31+
- name: Run anvil-zksync
32+
uses: dutterbutter/[email protected]
33+
with:
34+
mode: fork
35+
forkUrl: mainnet
36+
log: info
37+
logFilePath: anvil_zksync.log
38+
target: x86_64-unknown-linux-gnu
39+
releaseTag: v0.2.1
40+
41+
- name: Setup Git config
42+
run: |
43+
git config --global user.name "GitHub Actions Bot"
44+
git config --global user.email "<>"
45+
git config --global url."https://github.com/".insteadOf "[email protected]:"
46+
47+
- name: Run zk-aave test
48+
env:
49+
RUST_BACKTRACE: full
50+
TEST_MAINNET_URL: http://localhost:8011
51+
run: |
52+
ZK_DEBUG_HISTORICAL_BLOCK_HASHES=5 cargo nextest run --package '*' --lib --test '*' --filter-expr 'test(~test_zk_aave_di)'

0 commit comments

Comments
 (0)