Skip to content

Commit

Permalink
ci: adding a gazelle check
Browse files Browse the repository at this point in the history
Now we have a gazelle check in CI as well as we have buildifier
  • Loading branch information
manuelnaranjo committed Jul 17, 2024
1 parent 102a20c commit b70cdac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Buildifier
name: Linters

# Controls when the action will run.
on:
Expand Down Expand Up @@ -37,3 +37,5 @@ jobs:
external-cache: true
- name: buildifier
run: bazel run //:buildifier.check
- name: gazelle
run: bazel run //:gazelle.check
5 changes: 5 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ load("//bazeldnf:defs.bzl", "bazeldnf", "rpmtree", "tar2files")
# gazelle:resolve go github.com/bazelbuild/buildtools/edit @com_github_bazelbuild_buildtools//edit:go_default_library
gazelle(name = "gazelle")

gazelle(
name = "gazelle.check",
mode = "diff",
)

buildifier(
name = "buildifier",
)
Expand Down

0 comments on commit b70cdac

Please sign in to comment.