Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 734ff69

Browse files
committed
Drone: Add Jsonnet config
Signed-off-by: Arve Knudsen <[email protected]>
1 parent 5220fb1 commit 734ff69

File tree

2 files changed

+38
-12
lines changed

2 files changed

+38
-12
lines changed

Diff for: .drone.jsonnet

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
local image = 'grafana/build-container:1.2.27';
2+
3+
local pipeline(name, trigger) = {
4+
kind: 'pipeline',
5+
type: 'docker',
6+
name: name,
7+
platform: {
8+
os: 'linux',
9+
arch: 'amd64',
10+
},
11+
trigger: trigger,
12+
steps: [
13+
{
14+
name: 'test',
15+
image: image,
16+
commands: [
17+
'go version',
18+
'golangci-lint --version',
19+
'golangci-lint run ./...',
20+
'go test -cover -race -vet all -mod readonly ./...',
21+
],
22+
},
23+
],
24+
};
25+
26+
[
27+
pipeline('test-pr', {
28+
event: [
29+
'pull_request',
30+
],
31+
}),
32+
pipeline('test-master', {
33+
branch: 'master',
34+
event: [
35+
'push',
36+
],
37+
}),
38+
]

Diff for: .drone.yml

-12
This file was deleted.

0 commit comments

Comments
 (0)