From 3f8925e2e00cd262ee5cbb64278601d1cbf2be3c Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Fri, 13 Dec 2024 09:47:49 +0200 Subject: [PATCH] .github: add golangci-lint workflow job. Signed-off-by: Krisztian Litkey --- .github/workflows/lint.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 000000000..132d39027 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,29 @@ +name: Lint + +on: + push: + branches: + - main + - "release-*" + - "test/**" + pull_request: + branches: + - main + - "release-*" + +env: + GO_VERSION: "1.22.1" + + golangci-lint: + name: golangci-lint + runs-on: ubuntu-24.04 + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ env.GO_VERSION }} + - uses: golangci/golangci-lint-action@v6 + with: + version: v1.61 + args: --timeout=10m