diff --git a/.github/changed-files.yml b/.github/changed-files.yml index f8fb54369..d14d9965a 100644 --- a/.github/changed-files.yml +++ b/.github/changed-files.yml @@ -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}" \ No newline at end of file diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index b7f2d8235..cea5f9e97 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -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 @@ -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) }} \ No newline at end of file + jobs: ${{ toJson(needs) }}