File tree 2 files changed +22
-15
lines changed
2 files changed +22
-15
lines changed Original file line number Diff line number Diff line change 1
1
version : 2.1
2
2
3
3
orbs :
4
- codecov :
codecov/[email protected]
5
-
6
- defaults : &defaults
7
- working_directory : /src
8
- docker :
9
- - image : golang:1.14
4
+ codecov :
codecov/[email protected]
10
5
11
6
jobs :
12
7
lint_markdown :
13
- << : *defaults
14
8
docker :
15
- - image : node:13 -slim
9
+ - image : node:14 -slim
16
10
steps :
17
11
- checkout
18
12
- run :
@@ -22,27 +16,41 @@ jobs:
22
16
name : Check for Lint
23
17
command : markdownlint .
24
18
19
+ check_mod_tidy :
20
+ docker :
21
+ - image : golang:1.14
22
+ steps :
23
+ - checkout
24
+ - run :
25
+ name : Check Module Tidiness
26
+ command : |-
27
+ go mod tidy
28
+ git diff --exit-code -- go.mod go.sum
29
+
25
30
build_source :
26
- << : *defaults
31
+ docker :
32
+ - image : golang:1.14
27
33
steps :
28
34
- checkout
29
35
- run :
30
36
name : Build Source
31
- command : go build -mod=readonly ./...
37
+ command : go build ./...
32
38
33
39
lint_source :
34
- << : *defaults
40
+ docker :
41
+ - image : golang:1.14
35
42
steps :
36
43
- checkout
37
44
- run :
38
45
name : Install golangci-lint
39
- command : curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.24 .0
46
+ command : curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.27 .0
40
47
- run :
41
48
name : Check for Lint
42
49
command : golangci-lint run
43
50
44
51
unit_test :
45
- << : *defaults
52
+ docker :
53
+ - image : golang:1.14
46
54
steps :
47
55
- checkout
48
56
- run :
@@ -57,6 +65,7 @@ workflows:
57
65
build_and_test :
58
66
jobs :
59
67
- lint_markdown
68
+ - check_mod_tidy
60
69
- build_source
61
70
- lint_source
62
71
- unit_test
Original file line number Diff line number Diff line change 1
1
github.com/go-log/log v0.2.0 h1:z8i91GBudxD5L3RmF0KVpetCbcGWAV7q1Tw1eRwQM9Q =
2
2
github.com/go-log/log v0.2.0 /go.mod h1:xzCnwajcues/6w7lne3yK2QU7DBPW7kqbgPGG5AF65U =
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
3
github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc =
6
4
github.com/gorilla/websocket v1.4.2 /go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE =
7
5
github.com/sylabs/json-resp v0.6.0 h1:W/yxwBu6WPMqiU9YBaelUsfWU1ZD+x4f4rxqmTr0LaI =
You can’t perform that action at this time.
0 commit comments