Skip to content

Commit c958ecc

Browse files
build: Run all pre-commit hooks in CI
1 parent e48634e commit c958ecc

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

.bazelci/presubmit.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
# limitations under the License.
1414

1515
---
16-
buildifier:
17-
# keep these arguments in sync with .pre-commit-config.yaml
18-
# Use a specific version to avoid skew issues when new versions are released.
19-
version: 6.1.0
20-
warnings: "all"
2116
# NOTE: Minimum supported version is 7.x
2217
.minimum_supported_version: &minimum_supported_version
2318
# For testing minimum supported version.

.github/workflows/lint.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
12+
defaults:
13+
run:
14+
shell: bash
15+
16+
jobs:
17+
ci:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
- uses: actions/setup-python@v3
22+
- uses: pre-commit/[email protected]

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ repos:
2525
hooks:
2626
- id: buildifier
2727
args: &args
28-
# Keep this argument in sync with .bazelci/presubmit.yaml
2928
- --warnings=all
3029
- id: buildifier-lint
3130
args: *args

0 commit comments

Comments
 (0)