build: Run all pre-commit hooks in CI
diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index 5889823..787a711 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml
@@ -13,11 +13,6 @@ # limitations under the License. --- -buildifier: - # keep these arguments in sync with .pre-commit-config.yaml - # Use a specific version to avoid skew issues when new versions are released. - version: 6.1.0 - warnings: "all" # NOTE: Minimum supported version is 7.x .minimum_supported_version: &minimum_supported_version # For testing minimum supported version.
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..7827bdc --- /dev/null +++ b/.github/workflows/lint.yaml
@@ -0,0 +1,22 @@ +name: lint + +on: + push: + branches: + - main + pull_request: + types: + - opened + - synchronize + +defaults: + run: + shell: bash + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + - uses: pre-commit/action@v3.0.1
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c3c63fe..4fe3fa5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml
@@ -25,7 +25,6 @@ hooks: - id: buildifier args: &args - # Keep this argument in sync with .bazelci/presubmit.yaml - --warnings=all - id: buildifier-lint args: *args