...
1timeout: 300s
2options:
3 machineType: E2_HIGHCPU_32
4 volumes:
5 - name: go-modules
6 path: /go
7 env:
8 - GOPROXY=https://proxy.golang.org
9 - PROJECT_ROOT=github.com/transparency-dev/merkle
10 - GOPATH=/go
11
12# Cloud Build logs sent to GCS bucket
13logsBucket: 'gs://trillian-cloudbuild-logs'
14
15steps:
16- id: 'lint'
17 name: "golangci/golangci-lint:v1.51"
18 args: ["golangci-lint", "run", "--timeout", "10m"]
19
20- id: 'unit tests'
21 name: 'golang:1.19'
22 args: ['go', 'test', './...']
23
24- id: 'build'
25 name: 'golang:1.19'
26 args: ['go', 'build', './...']
View as plain text