From 8559f266106ff4b6919dd2ca17d13437ee62a909 Mon Sep 17 00:00:00 2001 From: Oleksandr Stepanov Date: Mon, 19 Aug 2024 16:35:09 +0200 Subject: [PATCH] ci: Set cancel in progress and concurency limit --- .github/workflows/ci.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 37671d1..bc75949 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,6 +2,10 @@ name: "Rust CI" on: pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: build: name: cargo build @@ -35,7 +39,7 @@ jobs: rustup toolchain install nightly-2023-08-23 rustup default nightly-2023-08-23 cargo install cargo-nextest - - name: zkevm_test_harness - Main test + - name: zkevm_test_harness - Main test run: cargo nextest run --release --manifest-path crates/zkevm_test_harness/Cargo.toml --test-threads 2 - name: Encodings test run: cargo nextest run --release --manifest-path crates/circuit_encodings/Cargo.toml