Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI concurrency #849

Merged
merged 2 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/reply-schemas-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/spell-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
push:
pull_request:

concurrency:
group: spellcheck-${{ github.head_ref || github.ref }}
cancel-in-progress: true

permissions:
contents: read

Expand Down
Loading