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