Skip to content

Commit bbf4ffd

Browse files
authored
feat: use go 1.17 (#35)
* update sd.yaml * update sd.yaml * use go 1.17 * update go.mod
1 parent 25c1fb8 commit bbf4ffd

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

go.mod

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
module github.com/tk3fftk/sdctl
22

3+
go 1.17
4+
5+
require (
6+
github.com/google/go-cmp v0.5.5
7+
github.com/spf13/cobra v1.2.1
8+
gopkg.in/yaml.v2 v2.4.0
9+
)
10+
311
require (
4-
github.com/google/go-cmp v0.3.0
5-
github.com/spf13/cobra v0.0.5
6-
gopkg.in/yaml.v2 v2.2.2
12+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
13+
github.com/spf13/pflag v1.0.5 // indirect
714
)

screwdriver.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
shared:
2-
image: golang:1.12.3
2+
image: golang:1.17
33
environment:
44
GO111MODULE: on
55

@@ -9,6 +9,9 @@ jobs:
99
environment:
1010
SD_SONAR_OPTS: "-Dsonar.sources=./ -Dsonar.exclusions=**/*_test.go,**/sonar-scanner*/** -Dsonar.go.coverage.reportPaths=/sd/workspace/artifacts/coverage.out"
1111
steps:
12+
- go_mod: |
13+
go mod download
14+
go mod tidy
1215
- go_vet: go vet ./...
1316
- gofmt: (! gofmt -s -d . | grep '^')
1417
- test: go test ./... -coverprofile=${SD_ARTIFACTS_DIR}/coverage.out -cover -v

0 commit comments

Comments
 (0)