From c705407163c919823b6d0380083d76d502e39e81 Mon Sep 17 00:00:00 2001 From: Badal Kumar Prusty Date: Mon, 14 Oct 2024 12:17:54 +0530 Subject: [PATCH] added github-action for golangci-lint --- .github/workflow/golangci-lint.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflow/golangci-lint.yml diff --git a/.github/workflow/golangci-lint.yml b/.github/workflow/golangci-lint.yml new file mode 100644 index 000000000..59dd10d31 --- /dev/null +++ b/.github/workflow/golangci-lint.yml @@ -0,0 +1,24 @@ +name: golangci-lint +on: + push: + branches: + - main + - "*" + +permissions: + contents: read + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: stable + - name: golangci-lint + uses: golangci/golangci-lint-action@v6 + with: + version: v1.60 + only-new-issues: true