Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .aspect/workflows/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See https://docs.aspect.build/workflows/configuration
tasks:
- test:
- buildifier:
notifications:
github: {}
github: {}
7 changes: 1 addition & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"steps": [
{
"name": "Check out source code",
"uses": "actions/checkout@v1"
"uses": "actions/checkout@v5"
},
{
"name": "Installing Bazel",
Expand All @@ -28,11 +28,6 @@
"name": "Gazelle",
"run": "rm -f $(find . -name '*.pb.go' | sed -e 's/[^/]*$/BUILD.bazel/') && bazel run //:gazelle"
},
{
"if": "matrix.host.lint",
"name": "Buildifier",
"run": "bazel run @com_github_bazelbuild_buildtools//:buildifier"
},
{
"if": "matrix.host.lint",
"name": "Gofmt",
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/pull-requests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"steps": [
{
"name": "Check out source code",
"uses": "actions/checkout@v1"
"uses": "actions/checkout@v5"
},
{
"name": "Installing Bazel",
Expand All @@ -28,11 +28,6 @@
"name": "Gazelle",
"run": "rm -f $(find . -name '*.pb.go' | sed -e 's/[^/]*$/BUILD.bazel/') && bazel run //:gazelle"
},
{
"if": "matrix.host.lint",
"name": "Buildifier",
"run": "bazel run @com_github_bazelbuild_buildtools//:buildifier"
},
{
"if": "matrix.host.lint",
"name": "Gofmt",
Expand Down
7 changes: 7 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ buildifier(
name = "buildifier",
)

buildifier(
name = "buildifier.check",
exclude_patterns = ["./.git/*"],
lint_mode = "warn",
mode = "diff",
)

npm_link_all_packages(
name = "node_modules",
)
1 change: 1 addition & 0 deletions tools/container.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"Utilities for building and pushing container images for all target platforms."
load("@rules_oci//oci:defs.bzl", "oci_image", "oci_image_index", "oci_push")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")

Expand Down
7 changes: 1 addition & 6 deletions tools/github_workflows/workflows_template.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
// https://github.com/GoogleCloudPlatform/container-definitions/issues/12037
{
name: 'Check out source code',
uses: 'actions/checkout@v1',
uses: 'actions/checkout@v5',
},
] + setupSteps + [
{
Expand All @@ -91,11 +91,6 @@
run: "rm -f $(find . -name '*.pb.go' | sed -e 's/[^/]*$/BUILD.bazel/') && bazel run //:gazelle",
'if': 'matrix.host.lint',
},
{
name: 'Buildifier',
run: 'bazel run @com_github_bazelbuild_buildtools//:buildifier',
'if': 'matrix.host.lint',
},
{
name: 'Gofmt',
run: 'bazel run @cc_mvdan_gofumpt//:gofumpt -- -w -extra $(pwd)',
Expand Down