Skip to content

Commit

Permalink
Merge pull request #35 from tri-adam/ci-improvements
Browse files Browse the repository at this point in the history
CI Improvements
  • Loading branch information
tri-adam authored Aug 3, 2020
2 parents 4933ba4 + 01d9861 commit e09dc80
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
version: 2.1

orbs:
codecov: codecov/[email protected].0
codecov: codecov/[email protected]

jobs:
lint_markdown:
executors:
node:
docker:
- image: node:14-slim
golang:
docker:
- image: golang:1.14
golangci-lint:
docker:
- image: golangci/golangci-lint:v1.29-alpine

jobs:
lint_markdown:
executor: node
steps:
- checkout
- run:
Expand All @@ -17,8 +27,7 @@ jobs:
command: markdownlint .

check_mod_tidy:
docker:
- image: golang:1.14
executor: golang
steps:
- checkout
- run:
Expand All @@ -29,29 +38,23 @@ jobs:
command: git diff --exit-code -- go.mod go.sum

build_source:
docker:
- image: golang:1.14
executor: golang
steps:
- checkout
- run:
name: Build Source
command: go build ./...

lint_source:
docker:
- image: golang:1.14
executor: golangci-lint
steps:
- checkout
- run:
name: Install golangci-lint
command: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.28.1
- run:
name: Check for Lint
command: golangci-lint run

unit_test:
docker:
- image: golang:1.14
executor: golang
steps:
- checkout
- run:
Expand Down

0 comments on commit e09dc80

Please sign in to comment.