Add path filters to skip CI on documentation changes (#2393)

Fixes #626 - Skip CI tests when only documentation files are modified

---------

Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
This commit is contained in:
Hanxi Zhang 2025-08-07 15:50:22 -07:00 committed by GitHub
parent 70d336d892
commit c6794fd2cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 44 additions and 4 deletions

View File

@ -1,6 +1,16 @@
name: CI
on: [push, pull_request]
on:
push:
paths-ignore:
- '**/*.md'
- '**/00-RELEASENOTES'
- '**/COPYING'
pull_request:
paths-ignore:
- '**/*.md'
- '**/00-RELEASENOTES'
- '**/COPYING'
concurrency:
group: ci-${{ github.head_ref || github.ref }}

View File

@ -2,9 +2,17 @@ name: Clang Format Check
on:
push:
paths-ignore:
- '**/*.md'
- '**/00-RELEASENOTES'
- '**/COPYING'
pull_request:
paths:
- 'src/**'
paths-ignore:
- '**/*.md'
- '**/00-RELEASENOTES'
- '**/COPYING'
concurrency:
group: clang-${{ github.head_ref || github.ref }}

View File

@ -2,7 +2,17 @@ name: "Codecov"
# Enabling on each push is to display the coverage changes in every PR,
# where each PR needs to be compared against the coverage of the head commit
on: [push, pull_request]
on:
push:
paths-ignore:
- '**/*.md'
- '**/00-RELEASENOTES'
- '**/COPYING'
pull_request:
paths-ignore:
- '**/*.md'
- '**/00-RELEASENOTES'
- '**/COPYING'
concurrency:
group: codecov-${{ github.head_ref || github.ref }}

View File

@ -6,6 +6,10 @@ on:
# any PR to a release branch.
- "[0-9].[0-9]"
- "unstable"
paths-ignore:
- '**/*.md'
- '**/00-RELEASENOTES'
- '**/COPYING'
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

View File

@ -1,8 +1,16 @@
name: External Server Tests
on:
pull_request:
push:
paths-ignore:
- '**/*.md'
- '**/00-RELEASENOTES'
- '**/COPYING'
pull_request:
paths-ignore:
- '**/*.md'
- '**/00-RELEASENOTES'
- '**/COPYING'
schedule:
- cron: '0 2 * * *'

View File

@ -369,4 +369,4 @@ Wilmington, Delaware 19802-4447
[1]: https://github.com/valkey-io/valkey/blob/unstable/COPYING
[2]: https://github.com/valkey-io/valkey/blob/unstable/CONTRIBUTING.md
[3]: https://github.com/valkey-io/valkey/blob/unstable/SECURITY.md
[3]: https://github.com/valkey-io/valkey/blob/unstable/SECURITY.md