Skip to content

Commit 9976db6

Browse files
committed
chore: enable drone testing
Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 137402b commit 9976db6

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.drone.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
kind: pipeline
3+
name: testing
4+
5+
platform:
6+
os: linux
7+
arch: amd64
8+
9+
steps:
10+
- name: lint
11+
image: golangci/golangci-lint:v1.41.1
12+
commands:
13+
- golangci-lint run -v
14+
volumes:
15+
- name: gopath
16+
path: /go
17+
18+
- name: test
19+
image: golang:1.16
20+
commands:
21+
- go test -v -covermode=atomic -coverprofile=coverage.out ./...
22+
volumes:
23+
- name: gopath
24+
path: /go
25+
26+
- name: codecov
27+
image: robertstettner/drone-codecov
28+
settings:
29+
token:
30+
from_secret: codecov_token
31+
32+
services:
33+
- name: nsq
34+
image: nsqio/nsq
35+
commands:
36+
- /nsqd
37+
38+
volumes:
39+
- name: gopath
40+
temp: {}

0 commit comments

Comments
 (0)