🔀 Merge branch 'support/drone' into develop
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
commit
289fb8987d
5
Makefile
5
Makefile
|
@ -19,7 +19,10 @@ test:
|
||||||
dep:
|
dep:
|
||||||
go mod download
|
go mod download
|
||||||
|
|
||||||
|
gen:
|
||||||
|
go generate ./...
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
golangci-lint run
|
golangci-lint run
|
||||||
|
|
||||||
.PHONY: build run clean test dep lint
|
.PHONY: build run clean test dep gen lint
|
|
@ -1,24 +0,0 @@
|
||||||
---
|
|
||||||
name: default
|
|
||||||
type: docker
|
|
||||||
kind: pipeline
|
|
||||||
steps:
|
|
||||||
- name: test
|
|
||||||
image: golang
|
|
||||||
volumes:
|
|
||||||
- name: deps
|
|
||||||
path: /go
|
|
||||||
commands:
|
|
||||||
- make test
|
|
||||||
- name: build
|
|
||||||
image: golang
|
|
||||||
volumes:
|
|
||||||
- name: deps
|
|
||||||
path: /go
|
|
||||||
commands:
|
|
||||||
- make build
|
|
||||||
depends_on:
|
|
||||||
- test
|
|
||||||
volumes:
|
|
||||||
- name: deps
|
|
||||||
temp: {}
|
|
|
@ -0,0 +1,43 @@
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: init
|
||||||
|
image: golang:1.18.0-alpine3.14
|
||||||
|
volumes:
|
||||||
|
- name: deps
|
||||||
|
path: /go
|
||||||
|
commands:
|
||||||
|
- go mod download
|
||||||
|
- go generate ./internal/...
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
image: golang:1.18.0-alpine3.14
|
||||||
|
volumes:
|
||||||
|
- name: deps
|
||||||
|
path: /go
|
||||||
|
environment:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
commands:
|
||||||
|
- go test -buildvcs=false -v -cover ./...
|
||||||
|
depends_on:
|
||||||
|
- init
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
image: golang:1.18.0-alpine3.14
|
||||||
|
volumes:
|
||||||
|
- name: deps
|
||||||
|
path: /go
|
||||||
|
environment:
|
||||||
|
CGO_ENABLED: 0
|
||||||
|
commands:
|
||||||
|
- go build -buildvcs=false
|
||||||
|
depends_on:
|
||||||
|
- init
|
||||||
|
- test
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: deps
|
||||||
|
temp: {}
|
Loading…
Reference in New Issue