ci: drop static check
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
bafc8a8e34
commit
7a8c7cd50f
10
.drone.yml
10
.drone.yml
|
@ -7,16 +7,6 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- make check
|
- make check
|
||||||
|
|
||||||
- name: make static
|
|
||||||
image: golang:1.18
|
|
||||||
ignore: true # until we decide we all want this check
|
|
||||||
environment:
|
|
||||||
STATIC_CHECK_URL: honnef.co/go/tools/cmd/staticcheck
|
|
||||||
STATIC_CHECK_VERSION: v0.2.0
|
|
||||||
commands:
|
|
||||||
- go install $STATIC_CHECK_URL@$STATIC_CHECK_VERSION
|
|
||||||
- make static
|
|
||||||
|
|
||||||
- name: make build
|
- name: make build
|
||||||
image: golang:1.18
|
image: golang:1.18
|
||||||
commands:
|
commands:
|
||||||
|
|
5
Makefile
5
Makefile
|
@ -5,7 +5,7 @@ LDFLAGS := "-X 'main.Commit=$(COMMIT)'"
|
||||||
DIST_LDFLAGS := $(LDFLAGS)" -s -w"
|
DIST_LDFLAGS := $(LDFLAGS)" -s -w"
|
||||||
export GOPRIVATE=coopcloud.tech
|
export GOPRIVATE=coopcloud.tech
|
||||||
|
|
||||||
all: format check static build test
|
all: format check build test
|
||||||
|
|
||||||
run:
|
run:
|
||||||
@go run -ldflags=$(LDFLAGS) $(ABRA)
|
@go run -ldflags=$(LDFLAGS) $(ABRA)
|
||||||
|
@ -28,9 +28,6 @@ format:
|
||||||
check:
|
check:
|
||||||
@test -z $$(gofmt -l .) || (echo "gofmt: formatting issue - run 'make format' to resolve" && exit 1)
|
@test -z $$(gofmt -l .) || (echo "gofmt: formatting issue - run 'make format' to resolve" && exit 1)
|
||||||
|
|
||||||
static:
|
|
||||||
@staticcheck $(ABRA)
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@go test ./... -cover -v
|
@go test ./... -cover -v
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue