From 5172e9b5eb46459170872a382afa482a47e1cecd Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Thu, 5 Oct 2023 15:50:42 -0700 Subject: [PATCH] chore: check gazelle on CI (#586) --- .aspect/workflows/config.yaml | 17 +++++++++++++---- BUILD.bazel | 7 +++++++ 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.aspect/workflows/config.yaml b/.aspect/workflows/config.yaml index 2afdc533e..ad861bcc2 100644 --- a/.aspect/workflows/config.yaml +++ b/.aspect/workflows/config.yaml @@ -4,14 +4,23 @@ env: CC: /bin/false workspaces: - . - - e2e/smoke - - e2e/coreutils - - e2e/copy_to_directory - - e2e/external_copy_to_directory + - e2e/smoke: + gazelle: + without: true + - e2e/coreutils: + gazelle: + without: true + - e2e/copy_to_directory: + gazelle: + without: true + - e2e/external_copy_to_directory: + gazelle: + without: true bazel: flags: - --remote_download_minimal - --nobuild_runfile_links tasks: branch_freshness: + gazelle: test: diff --git a/BUILD.bazel b/BUILD.bazel index 9535f9699..ddbd88654 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -21,6 +21,13 @@ gazelle_binary( gazelle( name = "gazelle", gazelle = "gazelle_bin", + mode = "fix", +) + +gazelle( + name = "gazelle.check", + gazelle = "gazelle_bin", + mode = "diff", ) gazelle(