internal/worker: run tests only on go 1.17 or higher

The trybots will run all tests on both 1.17 and 1.16. We don't
care about being 1.16-compatible, so don't run our tests on it.

Also, the android builder doesn't copy the full repo, which
breaks our test of HTML templates. So disable android for
that file.

Fixes golang/go#50013

Change-Id: I7379eff1226b50667da156e1b93c2759d618547d
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/370094
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julie@golang.org>
diff --git a/internal/worker/issues_test.go b/internal/worker/issues_test.go
index ad1cdea..c7df234 100644
--- a/internal/worker/issues_test.go
+++ b/internal/worker/issues_test.go
@@ -2,6 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build go1.17
+// +build go1.17
+
 package worker
 
 import (
@@ -53,7 +56,6 @@
 	if err != nil {
 		t.Fatal(err)
 	}
-	t.Logf("created issue #%d", num)
 	gotExists, err := c.IssueExists(ctx, num)
 	if err != nil {
 		t.Fatal(err)
diff --git a/internal/worker/paths_test.go b/internal/worker/paths_test.go
index eb9f18f..5a4045f 100644
--- a/internal/worker/paths_test.go
+++ b/internal/worker/paths_test.go
@@ -2,6 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build go1.17
+// +build go1.17
+
 package worker
 
 import (
diff --git a/internal/worker/repo_test.go b/internal/worker/repo_test.go
index 475d523..f230bc6 100644
--- a/internal/worker/repo_test.go
+++ b/internal/worker/repo_test.go
@@ -2,6 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build go1.17
+// +build go1.17
+
 package worker
 
 import (
diff --git a/internal/worker/server_test.go b/internal/worker/server_test.go
index c4e63b1..9a54dcf 100644
--- a/internal/worker/server_test.go
+++ b/internal/worker/server_test.go
@@ -2,6 +2,10 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// The android builder doesn't copy the static directory (or anything but testdata).
+//go:build !android && go1.17
+// +build !android,go1.17
+
 package worker
 
 import (
diff --git a/internal/worker/store/fire_store_test.go b/internal/worker/store/fire_store_test.go
index cbb583e..286da97 100644
--- a/internal/worker/store/fire_store_test.go
+++ b/internal/worker/store/fire_store_test.go
@@ -2,6 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build go1.17
+// +build go1.17
+
 package store
 
 import (
diff --git a/internal/worker/store/mem_store_test.go b/internal/worker/store/mem_store_test.go
index 2779041..498750c 100644
--- a/internal/worker/store/mem_store_test.go
+++ b/internal/worker/store/mem_store_test.go
@@ -2,6 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build go1.17
+// +build go1.17
+
 package store
 
 import "testing"
diff --git a/internal/worker/store/store_test.go b/internal/worker/store/store_test.go
index f667956..8fa056e 100644
--- a/internal/worker/store/store_test.go
+++ b/internal/worker/store/store_test.go
@@ -2,6 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build go1.17
+// +build go1.17
+
 package store
 
 import (
diff --git a/internal/worker/triage_test.go b/internal/worker/triage_test.go
index 43a8cb5..cd18ebc 100644
--- a/internal/worker/triage_test.go
+++ b/internal/worker/triage_test.go
@@ -2,6 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build go1.17
+// +build go1.17
+
 package worker
 
 import (
diff --git a/internal/worker/update_test.go b/internal/worker/update_test.go
index b394241..a77d949 100644
--- a/internal/worker/update_test.go
+++ b/internal/worker/update_test.go
@@ -2,6 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build go1.17
+// +build go1.17
+
 package worker
 
 import (
diff --git a/internal/worker/worker_test.go b/internal/worker/worker_test.go
index aeff6d6..0552607 100644
--- a/internal/worker/worker_test.go
+++ b/internal/worker/worker_test.go
@@ -2,6 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build go1.17
+// +build go1.17
+
 package worker
 
 import (