-
Notifications
You must be signed in to change notification settings - Fork 8
/
.drone.yml
48 lines (43 loc) · 847 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
---
kind: pipeline
name: default
type: docker
steps:
- name: test
image: golang:1.22
volumes:
- name: deps
path: /go
commands:
- go test -race -coverprofile=coverage.txt -covermode=atomic
- name: linter
image: golang:1.22
volumes:
- name: deps
path: /go
commands:
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s
- ./bin/golangci-lint run --timeout 5m
- rm -r ./bin/
- name: coverage
image: plugins/codecov
settings:
token:
from_secret: codecov_token
files:
- coverage.txt
- name: telegram
image: appleboy/drone-telegram
settings:
to: 790376882
format: markdown
token:
from_secret: telegram_token
when:
status:
- success
- failure
volumes:
- name: deps
host:
path: /var/lib/cache/godeps/