forked from avivsinai/bitbucket-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitbucket-pipelines.yml
More file actions
49 lines (45 loc) · 899 Bytes
/
bitbucket-pipelines.yml
File metadata and controls
49 lines (45 loc) · 899 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
43
44
45
46
47
48
49
image: golang:1.24
definitions:
steps:
- step: &build
name: Build
caches:
- go-mod
script:
- go build -v ./...
- step: &test
name: Test
caches:
- go-mod
script:
- go test ./...
- step: &lint
name: Lint
caches:
- go-mod
script:
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- golangci-lint run --timeout 5m
caches:
go-mod:
key:
files:
- go.sum
path: /go/pkg/mod
pipelines:
default:
- parallel:
- step: *build
- step: *test
branches:
master:
- parallel:
- step: *build
- step: *test
- step: *lint
pull-requests:
"**":
- parallel:
- step: *build
- step: *test
- step: *lint