-
Notifications
You must be signed in to change notification settings - Fork 233
/
.drone.yml
56 lines (49 loc) · 828 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
---
kind: pipeline
type: vm
name: default
pool:
use: ubuntu
steps:
- name: vet
image: golang:1.22
commands:
- go vet ./...
volumes:
- name: gopath
path: /go
depends_on:
- clone
- name: test
image: golang:1.22
commands:
- go test -cover ./...
volumes:
- name: gopath
path: /go
depends_on:
- vet
- name: check go.mod is up to date
image: golang:1.22
commands:
- cp go.mod go.mod.bak
- go mod tidy
- diff go.mod go.mod.bak || (echo "go.mod is not up to date" && exit 1)
volumes:
- name: gopath
path: /go
depends_on:
- vet
- name: golangci-lint
image: golangci/golangci-lint:v1.48-alpine
commands:
- golangci-lint run --timeout 500s --new-from-rev=HEAD~
volumes:
- name: gopath
path: /go
depends_on:
- clone
volumes:
- name: gopath
temp: {}
...