mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
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:
parent
48bf0ce210
commit
1492738c9e
4 changed files with 49 additions and 112 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue