golangci-lint in CI (#733)

* golangci-lint in CI

* Put CI in own job

* Run verify job

* Use go get

* Fix typo

* Name lint instead of verify

* Read the config

* Use debug tag

* Tweaks
This commit is contained in:
Neil Alexander 2020-09-27 14:28:25 +01:00 committed by GitHub
parent 48bf0ce210
commit 1492738c9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 49 additions and 112 deletions

View file

@ -3,6 +3,19 @@
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2.1
jobs:
lint:
docker:
- image: circleci/golang:1.14.1
steps:
- checkout
- run:
name: Run golangci-lint
command: |
go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.31.0
golangci-lint run
build-linux:
docker:
- image: circleci/golang:1.14.1
@ -201,9 +214,16 @@ workflows:
version: 2.1
build:
jobs:
- build-linux
- build-macos
- build-other
- lint
- build-linux:
requires:
- lint
- build-macos:
requires:
- lint
- build-other:
requires:
- lint
- upload:
requires:
- build-linux