From 07901a9b7cfbc4cabb6c53e7a0fc8a803348e5f2 Mon Sep 17 00:00:00 2001 From: Nils Wireklint Date: Wed, 15 Nov 2023 11:24:09 +0100 Subject: [PATCH] CI: Move the buildifier check for whitespace last --- .github/workflows/pull-requests.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull-requests.yaml b/.github/workflows/pull-requests.yaml index 1d265bd..6b34577 100644 --- a/.github/workflows/pull-requests.yaml +++ b/.github/workflows/pull-requests.yaml @@ -23,10 +23,6 @@ "name": "Gazelle", "run": "bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro go_dependencies.bzl%go_dependencies -prune && bazel run //:gazelle" }, - { - "name": "Buildifier", - "run": "sed '/^$/d' go_dependencies.bzl > go_dependencies.bzl.new && mv go_dependencies.bzl.new go_dependencies.bzl && bazel run @com_github_bazelbuild_buildtools//:buildifier" - }, { "name": "Gofmt", "run": "bazel run @cc_mvdan_gofumpt//:gofumpt -- -lang 1.19 -w -extra $(pwd)" @@ -94,6 +90,10 @@ { "name": "windows_amd64: build and test", "run": "bazel build --platforms=@io_bazel_rules_go//go/toolchain:windows_amd64 //..." + }, + { + "name": "Buildifier", + "run": "sed '/^$/d' go_dependencies.bzl > go_dependencies.bzl.new && mv go_dependencies.bzl.new go_dependencies.bzl && bazel run @com_github_bazelbuild_buildtools//:buildifier" } ] }