👷 Use official golangci-lint docker image
This commit is contained in:
parent
3b91265497
commit
84d58bd472
2 changed files with 4 additions and 6 deletions
|
@ -17,10 +17,9 @@ steps:
|
|||
path: /go
|
||||
|
||||
- name: lint
|
||||
image: golang
|
||||
image: golangci/golangci-lint
|
||||
commands:
|
||||
- wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.41.1
|
||||
- ./bin/golangci-lint run
|
||||
- golangci-lint run ./...
|
||||
failure: ignore
|
||||
volumes:
|
||||
- name: deps
|
||||
|
|
|
@ -42,9 +42,8 @@ cover:
|
|||
cobertura: coverage.xml
|
||||
|
||||
lint:
|
||||
image: golangci/golangci-lint
|
||||
stage: test
|
||||
before_script:
|
||||
- wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.41.1
|
||||
script:
|
||||
- ./bin/golangci-lint run
|
||||
- golangci-lint run $REPO_NAME/...
|
||||
allow_failure: true
|
||||
|
|
Loading…
Reference in a new issue