Skip to content

Commit 1cac1b8

Browse files
authored
Merge pull request #35 from tri-adam/mod-tidy-ci
CI Improvements
2 parents e6c61fb + fb0fd95 commit 1cac1b8

File tree

2 files changed

+22
-15
lines changed

2 files changed

+22
-15
lines changed

.circleci/config.yml

+22-13
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
version: 2.1
22

33
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]
105

116
jobs:
127
lint_markdown:
13-
<<: *defaults
148
docker:
15-
- image: node:13-slim
9+
- image: node:14-slim
1610
steps:
1711
- checkout
1812
- run:
@@ -22,27 +16,41 @@ jobs:
2216
name: Check for Lint
2317
command: markdownlint .
2418

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+
2530
build_source:
26-
<<: *defaults
31+
docker:
32+
- image: golang:1.14
2733
steps:
2834
- checkout
2935
- run:
3036
name: Build Source
31-
command: go build -mod=readonly ./...
37+
command: go build ./...
3238

3339
lint_source:
34-
<<: *defaults
40+
docker:
41+
- image: golang:1.14
3542
steps:
3643
- checkout
3744
- run:
3845
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
4047
- run:
4148
name: Check for Lint
4249
command: golangci-lint run
4350

4451
unit_test:
45-
<<: *defaults
52+
docker:
53+
- image: golang:1.14
4654
steps:
4755
- checkout
4856
- run:
@@ -57,6 +65,7 @@ workflows:
5765
build_and_test:
5866
jobs:
5967
- lint_markdown
68+
- check_mod_tidy
6069
- build_source
6170
- lint_source
6271
- unit_test

go.sum

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
github.com/go-log/log v0.2.0 h1:z8i91GBudxD5L3RmF0KVpetCbcGWAV7q1Tw1eRwQM9Q=
22
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=
53
github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc=
64
github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
75
github.com/sylabs/json-resp v0.6.0 h1:W/yxwBu6WPMqiU9YBaelUsfWU1ZD+x4f4rxqmTr0LaI=

0 commit comments

Comments
 (0)