-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.drone.yml
32 lines (29 loc) · 794 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
kind: pipeline
name: default
steps:
- name: test
image: golang
commands:
- go version
- go get ./...
- go build ./...
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.21.0
- golangci-lint run --enable dupl --enable goconst --enable gocritic --enable misspell --enable prealloc --enable unconvert --enable unparam --disable typecheck
- go test -v -race -coverprofile=coverage.txt ./...
- name: coverage
image: plugins/codecov
settings:
token:
from_secret: codecov-token
files:
- coverage.txt
- name: discord
image: appleboy/drone-discord
when:
status:
- failure
settings:
webhook_id:
from_secret: discord-id
webhook_token:
from_secret: discord-token