diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 2b11178bf9..20e7c73c09 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -2,8 +2,10 @@ name: pre-commit on: pull_request: + branches: + - '**' push: - branches: [main] + branches: [master] jobs: pre-commit: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 60f00d4389..15ee089b43 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,6 +16,7 @@ repos: rev: v0.6.10 hooks: - id: cmake-format + - id: cmake-lint - repo: https://github.com/pryorda/dockerfilelint-precommit-hooks rev: v0.1.0