🎨 Format Drone config
This commit is contained in:
parent
d059d17355
commit
3b91265497
47
.drone.yml
47
.drone.yml
|
@ -1,24 +1,31 @@
|
||||||
---
|
---
|
||||||
name: default
|
|
||||||
type: docker
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: golang
|
image: golang
|
||||||
volumes:
|
commands:
|
||||||
- name: deps
|
- go test -v -cover -race ./...
|
||||||
path: /go
|
volumes:
|
||||||
commands:
|
|
||||||
- go test -v -cover -race ./...
|
|
||||||
- name: lint
|
|
||||||
image: golang
|
|
||||||
volumes:
|
|
||||||
- name: deps
|
|
||||||
path: /go
|
|
||||||
commands:
|
|
||||||
- wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.41.1
|
|
||||||
- ./bin/golangci-lint run
|
|
||||||
failure: ignore
|
|
||||||
volumes:
|
|
||||||
- name: deps
|
- name: deps
|
||||||
temp: {}
|
path: /go
|
||||||
|
|
||||||
|
- name: lint
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.41.1
|
||||||
|
- ./bin/golangci-lint run
|
||||||
|
failure: ignore
|
||||||
|
volumes:
|
||||||
|
- name: deps
|
||||||
|
path: /go
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: deps
|
||||||
|
temp: {}
|
||||||
|
|
Loading…
Reference in New Issue