Skip to content

Commit

Permalink
Only run CI checks on relevant changes (#544)
Browse files Browse the repository at this point in the history
Fixes #543
  • Loading branch information
jbcoe authored Mar 8, 2025
1 parent be7823e commit 506bfe3
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 38 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@ on:
- cron: "0 1 * * *"
push:
branches: [main]
paths-ignore:
- CODEOWNERS
- requirements.txt
- LICENSE.txt
- .pre-commit-config.yaml
- '**/*.md'
paths:
- ".github/workflows/bazel.yml" # This file
- "**/*.cc"
- "**/*.h"
- "**/BUILD.bazel"
- "**/MODULE.bazel"
- ".bazelrc"
pull_request:
branches: [main]
paths-ignore:
- CODEOWNERS
- requirements.txt
- LICENSE.txt
- .pre-commit-config.yaml
- '**/*.md'
paths:
- ".github/workflows/bazel.yml" # This file
- "**/*.cc"
- "**/*.h"
- "**/BUILD.bazel"
- "**/MODULE.bazel"
- ".bazelrc"
jobs:
build:
name: ${{ matrix.settings.name }}
Expand Down
28 changes: 15 additions & 13 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
name: CMake
name: CMake test

on:
schedule:
- cron: "0 1 * * *"
push:
branches: [main]
paths-ignore:
- CODEOWNERS
- requirements.txt
- LICENSE.txt
- .pre-commit-config.yaml
- '**/*.md'
paths:
- ".github/workflows/cmake.yml" # This file
- "**/*.cc"
- "**/*.h"
- "**/CMakeLists.txt"
- "CMakePresets.json"
- "cmake/**"
pull_request:
branches: [main]
paths-ignore:
- CODEOWNERS
- requirements.txt
- LICENSE.txt
- .pre-commit-config.yaml
- '**/*.md'
paths:
- ".github/workflows/cmake.yml" # This file
- "**/*.cc"
- "**/*.h"
- "**/CMakeLists.txt"
- "CMakePresets.json"
- "cmake/**"

jobs:
build:
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/code_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@ on:
- cron: "0 1 * * *"
push:
branches: [main]
paths-ignore:
- CODEOWNERS
- requirements.txt
- LICENSE.txt
- .pre-commit-config.yaml
- '**/*.md'
paths:
- ".github/workflows/code_coverage.yml" # This file
- "**/*.cc"
- "**/*.h"
- "**/CMakeLists.txt"
- "CMakePresets.json"
- "cmake/**"
pull_request:
branches: [main]
paths-ignore:
- CODEOWNERS
- requirements.txt
- LICENSE.txt
- .pre-commit-config.yaml
- '**/*.md'
paths:
- ".github/workflows/code_coverage.yml" # This file
- "**/*.cc"
- "**/*.h"
- "**/CMakeLists.txt"
- "CMakePresets.json"
- "cmake/**"

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/integrity_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ name: Integrity Checks
on:
push:
branches: [main]
paths:
- ".github/workflows/*.yml"
pull_request:
branches: [main]

paths:
- ".github/workflows/*.yml"
defaults:
run:
shell: bash
Expand Down

0 comments on commit 506bfe3

Please sign in to comment.