File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 39
39
- uses : actions/checkout@v4
40
40
- uses : dtolnay/install-buck2@latest
41
41
- run : git ls-files '*.bzl' '*.bxl' | xargs buck2 starlark lint
42
+
43
+ buildifier :
44
+ name : Buildifier
45
+ needs : pre_ci
46
+ if : needs.pre_ci.outputs.continue
47
+ runs-on : ubuntu-latest
48
+ timeout-minutes : 45
49
+ steps :
50
+ - uses : actions/checkout@v4
51
+ - run : go install github.com/bazelbuild/buildtools/buildifier@latest
52
+ - run : echo $(go env GOPATH)/bin >> $GITHUB_PATH
53
+ - run : git ls-files '*.bzl' | xargs buildifier
54
+ - run : git ls-files '*/BUCK' BUCK_TREE | xargs -n1 buildifier -path BUILD.bazel -lint fix
55
+ - run : git ls-files '*.bxl' | xargs -n1 buildifier -path script.bzl -lint fix
56
+ - name : Check that buildifier wanted no changes
57
+ run : git diff --exit-code
You can’t perform that action at this time.
0 commit comments