From dbcae8c52a4e61fcdb5b4d0c822d1c87b54063c9 Mon Sep 17 00:00:00 2001 From: RainbowMango Date: Mon, 16 Nov 2020 12:51:02 +0800 Subject: [PATCH] Enable golangci-lint github action --- .github/workflows/golangci-lint.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/golangci-lint.yml diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml new file mode 100644 index 000000000..b8b08e41a --- /dev/null +++ b/.github/workflows/golangci-lint.yml @@ -0,0 +1,22 @@ +name: golangci-lint +on: + push: + tags: + - v* + branches: + - master + pull_request: +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: golangci-lint + uses: golangci/golangci-lint-action@v2 + with: + # the version of golangci-lint. + version: v1.32.2 + + # show only new issues if it's a pull request. + only-new-issues: false