From 2f89da50c19b403687fa1a7ace4bd54a649baeb1 Mon Sep 17 00:00:00 2001 From: Yury-Fridlyand Date: Tue, 30 Jul 2024 17:30:59 -0700 Subject: [PATCH] Fix CI. Signed-off-by: Yury-Fridlyand --- .github/workflows/ci.yml | 4 ++++ .github/workflows/clang-format.yml | 4 ++++ .github/workflows/codecov.yml | 4 ++++ .github/workflows/codeql-analysis.yml | 6 +++++- .github/workflows/coverity.yml | 8 +++++++- .github/workflows/daily.yml | 4 ++++ .github/workflows/external.yml | 6 +++++- .github/workflows/reply-schemas-linter.yml | 4 ++++ .github/workflows/spell-check.yml | 4 ++++ 9 files changed, 41 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a7b1fb1ce..7aae3526ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,10 @@ name: CI on: [push, pull_request] +concurrency: + group: ci-${{ github.head_ref || github.ref }} + cancel-in-progress: true + permissions: contents: read diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 7d53cc28e7..187e2ba76c 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -5,6 +5,10 @@ on: paths: - 'src/**' +concurrency: + group: clang-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: clang-format-check: runs-on: ubuntu-latest diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 0a0d4a23db..f9e933206e 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -4,6 +4,10 @@ name: "Codecov" # where each PR needs to be compared against the coverage of the head commit on: [push, pull_request] +concurrency: + group: codecov-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: code-coverage: runs-on: ubuntu-latest diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 6165429c3a..a1d962f19b 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -4,7 +4,11 @@ on: pull_request: schedule: # run weekly new vulnerability was added to the database - - cron: '0 0 * * 0' + - cron: '0 3 * * 0' + +concurrency: + group: codeql-${{ github.head_ref || github.ref }} + cancel-in-progress: true permissions: contents: read diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index cfd0df1af3..cd6c60c674 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -3,11 +3,17 @@ name: Coverity Scan on: schedule: # Run once daily, since below 500k LOC can have 21 builds per week, per https://scan.coverity.com/faq#frequency - - cron: '0 0 * * *' + - cron: '0 1 * * *' # Support manual execution workflow_dispatch: + +concurrency: + group: coverity-${{ github.head_ref || github.ref }} + cancel-in-progress: true + permissions: contents: read + jobs: coverity: if: github.repository == 'valkey-io/valkey' diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 48cbb28ee1..b74b3bda1d 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -29,6 +29,10 @@ on: description: "git branch or sha to use" default: "unstable" +concurrency: + group: daily-${{ github.head_ref || github.ref }} + cancel-in-progress: true + permissions: contents: read diff --git a/.github/workflows/external.yml b/.github/workflows/external.yml index e021a964d1..59d9a9a7f2 100644 --- a/.github/workflows/external.yml +++ b/.github/workflows/external.yml @@ -4,7 +4,11 @@ on: pull_request: push: schedule: - - cron: '0 0 * * *' + - cron: '0 2 * * *' + +concurrency: + group: external-${{ github.head_ref || github.ref }} + cancel-in-progress: true permissions: contents: read diff --git a/.github/workflows/reply-schemas-linter.yml b/.github/workflows/reply-schemas-linter.yml index 0c4e62341e..1be4ba3afb 100644 --- a/.github/workflows/reply-schemas-linter.yml +++ b/.github/workflows/reply-schemas-linter.yml @@ -8,6 +8,10 @@ on: paths: - 'src/commands/*.json' +concurrency: + group: reply-schemas-linter-${{ github.head_ref || github.ref }} + cancel-in-progress: true + permissions: contents: read diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml index a5d3fd68d4..5d8dd27484 100644 --- a/.github/workflows/spell-check.yml +++ b/.github/workflows/spell-check.yml @@ -9,6 +9,10 @@ on: push: pull_request: +concurrency: + group: spellcheck-${{ github.head_ref || github.ref }} + cancel-in-progress: true + permissions: contents: read