From 51e9b9bd74164b4dc958fc5ba5d00a4e87e4a278 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sun, 21 Feb 2021 23:15:53 +0800 Subject: [PATCH] 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 Co-authored-by: a1012112796 <1012112796@qq.com> Co-committed-by: a1012112796 <1012112796@qq.com> --- Dockerfile | 5 ++++- README.md | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 01ccf92..5d7bfe3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index bc8baa0..8271945 100644 --- a/README.md +++ b/README.md @@ -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