From 76950e978e24ca25d2fd2ec319cd6c0f3dd8e415 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Thu, 21 Apr 2022 11:09:57 -0700 Subject: [PATCH] feat(ci): cancel in progress (#3938) --- .github/workflows/artifacts-updater.yml | 4 ++++ .github/workflows/audit.yml | 4 ++++ .github/workflows/bench.yml | 4 ++++ .github/workflows/change-status-on-PR.yml | 2 +- .github/workflows/lint-fmt-cli.yml | 4 ++++ .github/workflows/lint-fmt-core.yml | 4 ++++ .github/workflows/lint-js.yml | 4 ++++ .github/workflows/test-bundler.yml | 4 ++++ .github/workflows/test-cli.yml | 4 ++++ .github/workflows/test-core.yml | 4 ++++ .github/workflows/udeps.yml | 4 ++++ 11 files changed, 41 insertions(+), 1 deletion(-) diff --git a/.github/workflows/artifacts-updater.yml b/.github/workflows/artifacts-updater.yml index 4283d78bc..3fe33ec4c 100644 --- a/.github/workflows/artifacts-updater.yml +++ b/.github/workflows/artifacts-updater.yml @@ -21,6 +21,10 @@ env: CARGO_INCREMENTAL: 0 # This is set to 0 by the https://github.com/Swatinem/rust-cache CARGO_PROFILE_DEV_DEBUG: 0 # This would add unnecessary bloat to the target folder, decreasing cache efficiency. +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + jobs: build-artifacs: runs-on: ${{ matrix.platform }} diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 361ab4585..ed8062111 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -15,6 +15,10 @@ on: - '**/package.json' - '**/yarn.lock' +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + jobs: audit-rust: runs-on: ubuntu-latest diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 515cf9c32..79f94f1cd 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -12,6 +12,10 @@ env: CARGO_INCREMENTAL: 0 # This is set to 0 by the https://github.com/Swatinem/rust-cache CARGO_PROFILE_DEV_DEBUG: 0 # This would add unnecessary bloat to the target folder, decreasing cache efficiency. +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + jobs: bench: strategy: diff --git a/.github/workflows/change-status-on-PR.yml b/.github/workflows/change-status-on-PR.yml index bc0080203..c3c7e4fb2 100644 --- a/.github/workflows/change-status-on-PR.yml +++ b/.github/workflows/change-status-on-PR.yml @@ -17,4 +17,4 @@ jobs: uses: jbolda/covector/packages/action@covector-v0 id: covector with: - command: "status" + command: 'status' diff --git a/.github/workflows/lint-fmt-cli.yml b/.github/workflows/lint-fmt-cli.yml index 1267dbc9c..241ec2980 100644 --- a/.github/workflows/lint-fmt-cli.yml +++ b/.github/workflows/lint-fmt-cli.yml @@ -19,6 +19,10 @@ env: CARGO_INCREMENTAL: 0 # This is set to 0 by the https://github.com/Swatinem/rust-cache CARGO_PROFILE_DEV_DEBUG: 0 # This would add unnecessary bloat to the target folder, decreasing cache efficiency. +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + jobs: fmt_check: runs-on: ubuntu-latest diff --git a/.github/workflows/lint-fmt-core.yml b/.github/workflows/lint-fmt-core.yml index d818bc4f0..209753ae7 100644 --- a/.github/workflows/lint-fmt-core.yml +++ b/.github/workflows/lint-fmt-core.yml @@ -20,6 +20,10 @@ env: CARGO_INCREMENTAL: 0 # This is set to 0 by the https://github.com/Swatinem/rust-cache CARGO_PROFILE_DEV_DEBUG: 0 # This would add unnecessary bloat to the target folder, decreasing cache efficiency. +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + jobs: fmt_check: runs-on: ubuntu-latest diff --git a/.github/workflows/lint-js.yml b/.github/workflows/lint-js.yml index 5eadd0a0a..91ae3dd5b 100644 --- a/.github/workflows/lint-js.yml +++ b/.github/workflows/lint-js.yml @@ -11,6 +11,10 @@ on: - 'tooling/cli/node/**' - 'tooling/api/**' +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + jobs: eslint-check: runs-on: ubuntu-latest diff --git a/.github/workflows/test-bundler.yml b/.github/workflows/test-bundler.yml index 76ace7733..8dbc8c382 100644 --- a/.github/workflows/test-bundler.yml +++ b/.github/workflows/test-bundler.yml @@ -19,6 +19,10 @@ env: CARGO_INCREMENTAL: 0 # This is set to 0 by the https://github.com/Swatinem/rust-cache CARGO_PROFILE_DEV_DEBUG: 0 # This would add unnecessary bloat to the target folder, decreasing cache efficiency. +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + jobs: build-tauri-bundler: runs-on: ${{ matrix.platform }} diff --git a/.github/workflows/test-cli.yml b/.github/workflows/test-cli.yml index 077ce415b..626f272ca 100644 --- a/.github/workflows/test-cli.yml +++ b/.github/workflows/test-cli.yml @@ -19,6 +19,10 @@ env: CARGO_INCREMENTAL: 0 # This is set to 0 by the https://github.com/Swatinem/rust-cache CARGO_PROFILE_DEV_DEBUG: 0 # This would add unnecessary bloat to the target folder, decreasing cache efficiency. +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + jobs: test-tauri-cli: runs-on: ${{ matrix.platform }} diff --git a/.github/workflows/test-core.yml b/.github/workflows/test-core.yml index 9e46a31bb..2cd739ffa 100644 --- a/.github/workflows/test-core.yml +++ b/.github/workflows/test-core.yml @@ -21,6 +21,10 @@ env: CARGO_INCREMENTAL: 0 # This is set to 0 by the https://github.com/Swatinem/rust-cache CARGO_PROFILE_DEV_DEBUG: 0 # This would add unnecessary bloat to the target folder, decreasing cache efficiency. +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + jobs: test-tauri-core: runs-on: ${{ matrix.platform }} diff --git a/.github/workflows/udeps.yml b/.github/workflows/udeps.yml index 5facba6f4..9d629568a 100644 --- a/.github/workflows/udeps.yml +++ b/.github/workflows/udeps.yml @@ -17,6 +17,10 @@ env: CARGO_INCREMENTAL: 0 # This is set to 0 by the https://github.com/Swatinem/rust-cache CARGO_PROFILE_DEV_DEBUG: 0 # This would add unnecessary bloat to the target folder, decreasing cache efficiency. +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + jobs: udeps: runs-on: ubuntu-latest