-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathscrewdriver.yaml
More file actions
26 lines (25 loc) · 801 Bytes
/
screwdriver.yaml
File metadata and controls
26 lines (25 loc) · 801 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
shared:
image: golang:1.18
environment:
GO111MODULE: on
jobs:
test:
requires: [ ~pr, ~commit ]
environment:
SD_SONAR_OPTS: "-Dsonar.sources=./ -Dsonar.exclusions=**/*_test.go,**/sonar-scanner*/** -Dsonar.go.coverage.reportPaths=/sd/workspace/artifacts/coverage.out"
steps:
- go_mod: |
go mod download
go mod tidy
- go_vet: go vet ./...
- gofmt: (! gofmt -s -d . | grep '^')
- test: go test ./... -coverprofile=${SD_ARTIFACTS_DIR}/coverage.out -cover -v
- snapshot_build: curl -sL https://git.io/goreleaser | bash -s -- --rm-dist --snapshot --skip-publish
release:
requires: [ test ]
environment:
SCM_USERNAME: tk3fftk
steps:
- release: ./scripts/release.sh
secrets:
- SCM_ACCESS_TOKEN