Add a gofmt check to CI

If we're going to start having folks writing Go code, it'll be good to
make sure that all the code is formatted. It means that folks should
never have formatting changes in their patch that's unrelated to what
they're actually trying to do.

Change-Id: I6cb657327dd4a238356b7ef38b9fb94446723ee5
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
diff --git a/tools/lint/BUILD b/tools/lint/BUILD
new file mode 100644
index 0000000..30fc7c9
--- /dev/null
+++ b/tools/lint/BUILD
@@ -0,0 +1,23 @@
+sh_binary(
+    name = "gofmt",
+    srcs = ["gofmt.sh"],
+    data = [
+        "@go_sdk//:bin/gofmt",
+    ],
+    deps = [
+        "@bazel_tools//tools/bash/runfiles",
+    ],
+)
+
+sh_binary(
+    name = "run-ci",
+    srcs = [
+        "run-ci.sh",
+    ],
+    data = [
+        ":gofmt",
+    ],
+    deps = [
+        "@bazel_tools//tools/bash/runfiles",
+    ],
+)