mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-11 01:47:53 +08:00
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:
parent
b140b2eb45
commit
81d76fb164
1 changed files with 4 additions and 4 deletions
|
@ -27,10 +27,6 @@ jobs:
|
||||||
keys:
|
keys:
|
||||||
- linux-go-{{ checksum "go.sum" }}-<< pipeline.parameters.cache-key >>
|
- 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:
|
- run:
|
||||||
name: Install goreleaser
|
name: Install goreleaser
|
||||||
command: go install github.com/goreleaser/goreleaser@latest
|
command: go install github.com/goreleaser/goreleaser@latest
|
||||||
|
@ -50,6 +46,10 @@ jobs:
|
||||||
name: Build binaries
|
name: Build binaries
|
||||||
command: goreleaser build --snapshot
|
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
|
- save_cache: # restores saved cache if no changes are detected since last run
|
||||||
key: linux-go-{{ checksum "go.sum" }}-<< pipeline.parameters.cache-key >>
|
key: linux-go-{{ checksum "go.sum" }}-<< pipeline.parameters.cache-key >>
|
||||||
paths:
|
paths:
|
||||||
|
|
Loading…
Reference in a new issue