Add golangci-lint v1.37.0 (#3)

Reviewed-on: https://gitea.com/gitea/test-env/pulls/3
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: a1012112796 <1012112796@qq.com>
Co-committed-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
a1012112796 2021-02-21 23:15:53 +08:00 committed by 6543
parent fd0c83b566
commit 51e9b9bd74
2 changed files with 5 additions and 1 deletions

View File

@ -10,4 +10,7 @@ RUN curl -SL https://github.com/git/git/archive/v2.30.1.tar.gz \
&& rm -rf /go/git-2.30.1 \
# install git-lfs
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
&& apt-get install -y git-lfs
&& apt-get install -y git-lfs \
# install golangci-lint
export BINARY="golangci-lint"; \
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.37.0

View File

@ -5,3 +5,4 @@ a docker imamge for gitea ci test
- From golang:1.15
- upgrade git to v2.30.1
- install git-lfs
- install [golangci-lint](https://github.com/golangci/golangci-lint) v1.37.0