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