Skip to content

Commit e09dc80

Browse files
authored
Merge pull request #35 from tri-adam/ci-improvements
CI Improvements
2 parents 4933ba4 + 01d9861 commit e09dc80

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

.circleci/config.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
version: 2.1
22

33
orbs:
4-
codecov: codecov/[email protected].0
4+
codecov: codecov/[email protected]
55

6-
jobs:
7-
lint_markdown:
6+
executors:
7+
node:
88
docker:
99
- image: node:14-slim
10+
golang:
11+
docker:
12+
- image: golang:1.14
13+
golangci-lint:
14+
docker:
15+
- image: golangci/golangci-lint:v1.29-alpine
16+
17+
jobs:
18+
lint_markdown:
19+
executor: node
1020
steps:
1121
- checkout
1222
- run:
@@ -17,8 +27,7 @@ jobs:
1727
command: markdownlint .
1828

1929
check_mod_tidy:
20-
docker:
21-
- image: golang:1.14
30+
executor: golang
2231
steps:
2332
- checkout
2433
- run:
@@ -29,29 +38,23 @@ jobs:
2938
command: git diff --exit-code -- go.mod go.sum
3039

3140
build_source:
32-
docker:
33-
- image: golang:1.14
41+
executor: golang
3442
steps:
3543
- checkout
3644
- run:
3745
name: Build Source
3846
command: go build ./...
3947

4048
lint_source:
41-
docker:
42-
- image: golang:1.14
49+
executor: golangci-lint
4350
steps:
4451
- checkout
45-
- run:
46-
name: Install golangci-lint
47-
command: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.28.1
4852
- run:
4953
name: Check for Lint
5054
command: golangci-lint run
5155

5256
unit_test:
53-
docker:
54-
- image: golang:1.14
57+
executor: golang
5558
steps:
5659
- checkout
5760
- run:

0 commit comments

Comments
 (0)