You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by to...@apache.org on 2021/05/08 01:48:51 UTC
[apisix-ingress-controller] branch master updated: ci: add
golangci-lint (#419)
This is an automated email from the ASF dual-hosted git repository.
tokers pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git
The following commit(s) were added to refs/heads/master by this push:
new 9317acf ci: add golangci-lint (#419)
9317acf is described below
commit 9317acfd55ae97456d84e866b664ff15b38beb6d
Author: fregie <xi...@live.com>
AuthorDate: Sat May 8 09:48:42 2021 +0800
ci: add golangci-lint (#419)
---
.github/workflows/golangci-lint.yml | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml
new file mode 100644
index 0000000..bd94d62
--- /dev/null
+++ b/.github/workflows/golangci-lint.yml
@@ -0,0 +1,26 @@
+name: golangci-lint
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+jobs:
+ golangci:
+ name: lint
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: setup go
+ uses: actions/setup-go@v1
+ with:
+ go-version: '1.13'
+
+ - name: Download golangci-lint
+ run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.39.0
+
+ - name: 🛩️ golangci-lint
+ run: $(go env GOPATH)/bin/golangci-lint run --tests=false --timeout 300s ./...