From 66d37aaf1ddbbcc80049058d2aa2b8569e6b2325 Mon Sep 17 00:00:00 2001 From: Cenk Alti Date: Sat, 27 Aug 2022 14:06:11 -0400 Subject: [PATCH] Setup golangci-lint GitHub action. Part of "Enhance the static-analysis workflow" issue. #14164 Signed-off-by: Cenk Alti --- .github/workflows/static-analysis.yaml | 4 ++++ CONTRIBUTING.md | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/static-analysis.yaml b/.github/workflows/static-analysis.yaml index 4bbd50979..e1faa91bc 100644 --- a/.github/workflows/static-analysis.yaml +++ b/.github/workflows/static-analysis.yaml @@ -13,6 +13,10 @@ jobs: - uses: actions/setup-go@v2 with: go-version: "1.17.8" + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: v1.49.0 - run: date - env: TARGET: ${{ matrix.target }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c9792d628..450892296 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -96,4 +96,4 @@ commit using message with a more generic `*:` prefix. We recommend that you install [golangci-lint](https://golangci-lint.run/usage/install/) and run `make lint`. -Very soon we will have a GitHub action to run our linters. +We also have a GitHub action to run our linters on every pull request.