1
0
Fork 0

👷 Use official golangci-lint docker image

This commit is contained in:
Maxim Lebedev 2021-08-05 16:27:52 +05:00
parent 3b91265497
commit 84d58bd472
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
2 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -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