From cb0caff2b9cf384198f1253c3fb12a0803ef70a2 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 3 Jun 2021 11:20:43 -0400 Subject: go.dev: fix cloudbuild.yaml The golden tests fail if you update _content/events.yaml before you run the tests. Don't do that. Change-Id: Ia7b8b4c05169e26b1341a0e70ef5b1c88aa52cb4 Reviewed-on: https://go-review.googlesource.com/c/website/+/324770 Trust: Russ Cox Run-TryBot: Russ Cox Reviewed-by: Dmitri Shuralyov --- go.dev/cloudbuild.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/go.dev/cloudbuild.yaml b/go.dev/cloudbuild.yaml index 7228b539..2d929189 100644 --- a/go.dev/cloudbuild.yaml +++ b/go.dev/cloudbuild.yaml @@ -4,11 +4,11 @@ steps: - name: 'mirror.gcr.io/library/golang' - entrypoint: bash - args: ["-c", "go run ./cmd/events/ > ./_content/events.yaml"] + args: ["go", "test", "./..."] dir: go.dev - name: 'mirror.gcr.io/library/golang' - args: ["go", "test", "./..."] + entrypoint: bash + args: ["-c", "go run ./cmd/events/ > ./_content/events.yaml"] dir: go.dev - name: "gcr.io/cloud-builders/gcloud" entrypoint: bash -- cgit v1.3