File tree 4 files changed +13
-43
lines changed
4 files changed +13
-43
lines changed Original file line number Diff line number Diff line change 6
6
defaults : &defaults
7
7
working_directory : /src
8
8
docker :
9
- - image : golang:1.12
9
+ - image : golang:1.13
10
10
11
11
jobs :
12
12
lint_markdown :
@@ -22,28 +22,10 @@ jobs:
22
22
name : Check for Lint
23
23
command : markdownlint .
24
24
25
- cache_go_mod :
26
- << : *defaults
27
- steps :
28
- - checkout
29
- - restore_cache :
30
- keys :
31
- - go-mod-{{ checksum "go.sum" }}
32
- - run :
33
- name : Populate Go Mod Cache
34
- command : go mod download
35
- - save_cache :
36
- key : go-mod-{{ checksum "go.sum" }}
37
- paths :
38
- - ' /go/pkg/mod'
39
-
40
25
build_source :
41
26
<< : *defaults
42
27
steps :
43
28
- checkout
44
- - restore_cache :
45
- keys :
46
- - go-mod-{{ checksum "go.sum" }}
47
29
- run :
48
30
name : Build Source
49
31
command : go build -mod=readonly ./...
52
34
<< : *defaults
53
35
steps :
54
36
- checkout
55
- - restore_cache :
56
- keys :
57
- - go-mod-{{ checksum "go.sum" }}
58
37
- run :
59
38
name : Install golangci-lint
60
- command : curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1
39
+ command : curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.18.0
61
40
- run :
62
41
name : Check for Lint
63
42
command : golangci-lint run
66
45
<< : *defaults
67
46
steps :
68
47
- checkout
69
- - restore_cache :
70
- keys :
71
- - go-mod-{{ checksum "go.sum" }}
72
48
- run :
73
49
name : Run Tests
74
50
command : go test -coverprofile cover.out -race ./...
@@ -81,13 +57,6 @@ workflows:
81
57
build_and_test :
82
58
jobs :
83
59
- lint_markdown
84
- - cache_go_mod
85
- - build_source :
86
- requires :
87
- - cache_go_mod
88
- - lint_source :
89
- requires :
90
- - cache_go_mod
91
- - unit_test :
92
- requires :
93
- - cache_go_mod
60
+ - build_source
61
+ - lint_source
62
+ - unit_test
Original file line number Diff line number Diff line change 1
1
linters :
2
2
enable-all : true
3
3
disable :
4
+ - funlen
4
5
- gochecknoglobals
5
6
- gocritic
6
7
- gosec
Original file line number Diff line number Diff line change 1
1
module github.com/sylabs/scs-build-client
2
2
3
- go 1.12
3
+ go 1.13
4
4
5
5
require (
6
6
github.com/go-log/log v0.1.0
7
- github.com/gorilla/websocket v1.4.0
8
- github.com/sylabs/json-resp v0.5 .0
7
+ github.com/gorilla/websocket v1.4.1
8
+ github.com/sylabs/json-resp v0.6 .0
9
9
)
Original file line number Diff line number Diff line change 1
1
github.com/go-log/log v0.1.0 h1:wudGTNsiGzrD5ZjgIkVZ517ugi2XRe9Q/xRCzwEO4/U =
2
2
github.com/go-log/log v0.1.0 /go.mod h1:4mBwpdRMFLiuXZDCwU2lKQFsoSCo72j3HqBK9d81N2M =
3
- github.com/gorilla/websocket v1.4.0 h1:WDFjx/TMzVgy9VdMMQi2K2Emtwi2QcUQsztZ/zLaH/Q =
4
- github.com/gorilla/websocket v1.4.0 /go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ =
5
- github.com/sylabs/json-resp v0.5 .0 h1:AWdKu6aS0WrkkltX1M0ex0lENrIcx5TISox902s2L2M =
6
- github.com/sylabs/json-resp v0.5 .0 /go.mod h1:anCzED2SGHHZQDubMuoVtwMuJZdpqQ+7iso8yDFm/nQ =
3
+ github.com/gorilla/websocket v1.4.1 h1:q7AeDBpnBk8AogcD4DSag/Ukw/KV+YhzLj2bP5HvKCM =
4
+ github.com/gorilla/websocket v1.4.1 /go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE =
5
+ github.com/sylabs/json-resp v0.6 .0 h1:W/yxwBu6WPMqiU9YBaelUsfWU1ZD+x4f4rxqmTr0LaI =
6
+ github.com/sylabs/json-resp v0.6 .0 /go.mod h1:QYGGBTYDgiIH+c6zRQuVd4PIYfm//vFD2flnIdF1k7E =
You can’t perform that action at this time.
0 commit comments