Run go fmt after build, so deps are there (#1557)

Signed-off-by: Jan-Philipp Benecke <jan-philipp@bnck.me>
This commit is contained in:
Jan-Philipp Benecke 2022-06-20 13:33:25 +02:00 committed by GitHub
parent b140b2eb45
commit 81d76fb164
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,10 +27,6 @@ jobs:
keys:
- linux-go-{{ checksum "go.sum" }}-<< pipeline.parameters.cache-key >>
- run:
name: Enforce Go Formatted Code
command: "[ `go fmt ./... 2>&1 | wc -l` -eq 0 ]"
- run:
name: Install goreleaser
command: go install github.com/goreleaser/goreleaser@latest
@ -50,6 +46,10 @@ jobs:
name: Build binaries
command: goreleaser build --snapshot
- run:
name: Enforce Go Formatted Code
command: "[ `go fmt ./... | wc -l` -eq 0 ]"
- save_cache: # restores saved cache if no changes are detected since last run
key: linux-go-{{ checksum "go.sum" }}-<< pipeline.parameters.cache-key >>
paths: