-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.drone.yml
More file actions
42 lines (37 loc) · 699 Bytes
/
.drone.yml
File metadata and controls
42 lines (37 loc) · 699 Bytes
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
---
kind: pipeline
type: docker
name: coredns-https-ci
trigger:
ref:
- refs/heads/main
- refs/pull/*/head
- refs/tags/*
event:
- push
- tag
- pull_request
clone:
depth: 1
steps:
- name: lint
image: golangci/golangci-lint:v1.48-alpine
volumes:
- name: deps
path: /go
commands:
- golangci-lint run -v
- go install github.com/mgechev/revive@v1.2.3
- revive -config .revive.toml -formatter friendly ./...
- name: test
image: golang:1.19-alpine
environment:
CGO_ENABLED: "0"
volumes:
- name: deps
path: /go
commands:
- go test ./... -v -cover
volumes:
- name: deps
temp: {}