From 11732fd3cac8b48197592a34e0045ab491de4333 Mon Sep 17 00:00:00 2001 From: Jrigada Date: Thu, 22 Aug 2024 14:16:06 -0300 Subject: [PATCH] fix test ci --- .github/workflows/zksync-ci.yml | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/.github/workflows/zksync-ci.yml b/.github/workflows/zksync-ci.yml index 9de95aa8..eb0951c8 100644 --- a/.github/workflows/zksync-ci.yml +++ b/.github/workflows/zksync-ci.yml @@ -8,8 +8,8 @@ on: branches: - 'zksync-v**' concurrency: - cancel-in-progress: true - group: ${{github.workflow}}-${{github.ref}} + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true env: CARGO_TERM_COLOR: always @@ -62,18 +62,17 @@ jobs: cargo-test: name: cargo-test runs-on: ubuntu-latest - + timeout-minutes: 30 steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - submodules: recursive - ref: ${{ github.event.pull_request.head.sha }} - - - name: Install Rust - uses: actions-rust-lang/setup-rust-toolchain@v1 - - - name: Run tests - env: - RUST_BACKTRACE: full - run: cargo test \ No newline at end of file + - uses: actions/checkout@v4 + with: + submodules: recursive + ref: ${{ github.event.pull_request.head.sha }} + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - uses: Swatinem/rust-cache@v2 + with: + cache-on-failure: true + - name: Run tests + run: cargo test --all-features + env: + RUST_BACKTRACE: full \ No newline at end of file