From 6cdec3e5185b736b2c8ea33825f1e3828cc4e9c7 Mon Sep 17 00:00:00 2001 From: Florian Weikert Date: Mon, 19 Oct 2020 16:54:02 +0200 Subject: [PATCH 1/2] Run go vet as presubmit check --- .bazelci/config.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.bazelci/config.yml b/.bazelci/config.yml index e86b4c9f..ecdcd21a 100644 --- a/.bazelci/config.yml +++ b/.bazelci/config.yml @@ -1,5 +1,12 @@ --- platforms: + go_vet: + name: ":go: vet" + platform: ubuntu1804 + shell_commands: + - go vet github.com/bazelbuild/bazelisk/... + - go get -u golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow + - go vet -vettool=$(which shadow) github.com/bazelbuild/bazelisk/... ubuntu1604: build_targets: - //... From 6cb64b90f38ba3bcca732b6ff74a77581bfd58c5 Mon Sep 17 00:00:00 2001 From: Florian Weikert Date: Mon, 19 Oct 2020 17:18:58 +0200 Subject: [PATCH 2/2] test --- .bazelci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bazelci/config.yml b/.bazelci/config.yml index ecdcd21a..9fda967e 100644 --- a/.bazelci/config.yml +++ b/.bazelci/config.yml @@ -6,6 +6,8 @@ platforms: shell_commands: - go vet github.com/bazelbuild/bazelisk/... - go get -u golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow + - pwd + - ls - go vet -vettool=$(which shadow) github.com/bazelbuild/bazelisk/... ubuntu1604: build_targets: