-
Notifications
You must be signed in to change notification settings - Fork 4
/
.drone.yml
64 lines (55 loc) · 930 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
kind: pipeline
type: vm
name: testing
platform:
os: linux
arch: amd64
pool:
use: ubuntu
steps:
- name: staticcheck
pull: always
image: golang:1.19
environment:
GO111MODULE: "on" # Explicitly enable Go modules
commands:
- go install honnef.co/go/tools/cmd/[email protected]
- staticcheck ./...
volumes:
- name: gopath
path: /go
- name: lint
pull: always
image: golang:1.19
commands:
- go get golang.org/x/lint/golint
- go run golang.org/x/lint/golint -set_exit_status ./...
volumes:
- name: gopath
path: /go
- name: vet
pull: always
image: golang:1.19
commands:
- go vet ./...
volumes:
- name: gopath
path: /go
- name: test
pull: always
image: golang:1.19
commands:
- go test -cover -v ./...
volumes:
- name: gopath
path: /go
volumes:
- name: gopath
temp: {}
trigger:
ref:
- refs/heads/master
- refs/tags/**
- refs/pull/**
...