Skip to content
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/changed-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ pre-commit:
- '!tests/deps/*/**'
- '!tests/benchmarks/deps/*/**'

# pre-commit-config.yaml changing can change every file, not just the changed ones
pre-commit-config:
- ".pre-commit-config.yaml"

# Determines which files are appropriate for running clangd-tidy checks on.
clangd:
- "**/*.{hpp,cpp,inc}"
7 changes: 6 additions & 1 deletion .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,17 @@ jobs:
files_yaml_from_source_file: .github/changed-files.yml

- name: Style checks via prek
if: steps.changed-files.outputs.pre-commit-config_any_changed != 'true'
uses: j178/prek-action@5337cb91e0fa35a7ff31b9ca345126d8bbbcdf16 # v2.0.6
env:
CHANGED_FILES: '"${{ steps.changed-files.outputs.pre-commit_all_changed_files }}"' # Wrap with quotes to bookend internal quote separators
with:
extra-args: --files ${{ env.CHANGED_FILES }}

- name: Style checks via prek for all files
if: steps.changed-files.outputs.pre-commit-config_any_changed == 'true'
uses: j178/prek-action@5337cb91e0fa35a7ff31b9ca345126d8bbbcdf16 # v2.0.6

build-master:
name: 🛠️ Build
needs: static-checks-builds
Expand Down Expand Up @@ -81,4 +86,4 @@ jobs:
uses: re-actors/alls-green@a638d6464689bbb24c325bb3fe9404d63a913030
with:
allowed-skips: static-checks-builds, build-master, merge-library-files
jobs: ${{ toJson(needs) }}
jobs: ${{ toJson(needs) }}