diff --git a/.github/workflows/reusable-cpp-linter.yml b/.github/workflows/reusable-cpp-linter.yml index 43201e5..1256ca6 100644 --- a/.github/workflows/reusable-cpp-linter.yml +++ b/.github/workflows/reusable-cpp-linter.yml @@ -6,6 +6,10 @@ on: description: "Clang version to use" default: 18 type: number + files-changed-only: + description: "Whether to only lint files that have changed" + default: true + type: boolean cmake-args: description: "Additional arguments to pass to CMake" default: "" @@ -71,11 +75,11 @@ jobs: tidy-checks: "" version: ${{ env.clang-version }} ignore: "build|include/python|src/python" - thread-comments: ${{ github.event_name == 'pull_request' }} + thread-comments: ${{ github.event_name == 'pull_request' && 'update' }} step-summary: true database: "build" extra-args: -std=c++17 - files-changed-only: true + files-changed-only: ${{ inputs.files-changed-only }} - name: Fail if linter found errors if: steps.linter.outputs.checks-failed > 0 run: echo "Linter found errors" && exit 1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dec75cf..1f9aae2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -64,12 +64,3 @@ repos: hooks: - id: check-dependabot - id: check-github-workflows - - id: check-jsonschema - name: "Validate Release Drafter configuration" - files: ^\.github/release-drafter.yml$ - types: [yaml] - args: - [ - "--schemafile", - "https://raw.githubusercontent.com/release-drafter/release-drafter/master/schema.json", - ]