From 3f40a4a2463b67cae33c21626633e6d4ff201a88 Mon Sep 17 00:00:00 2001 From: s3rj1k Date: Mon, 26 Feb 2024 22:45:29 +0100 Subject: [PATCH] [GHA] Add golangci-lint workflow. --- .github/workflows/golangci-lint.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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 0000000..cf44415 --- /dev/null +++ b/.github/workflows/golangci-lint.yml @@ -0,0 +1,28 @@ +name: golangci-lint +on: + push: + branches: + - master + - main + pull_request: + workflow_dispatch: + +permissions: + contents: read + +jobs: + golangci: + name: Go Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: '1.22' + cache: false + - name: golangci-lint + uses: golangci/golangci-lint-action@v4 + with: + version: v1.56.2 + skip-cache: true + install-mode: "binary"