From 0f40585a8f0864fe2810adff791bad472f50e8a1 Mon Sep 17 00:00:00 2001 From: Aykhan Shahsuvarov Date: Sat, 25 Oct 2025 17:26:36 +0400 Subject: [PATCH] Add golangci-lint workflow for CI --- .github/workflows/lint.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 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 0000000..cc0bd1d --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,23 @@ +name: golangci-lint +on: + push: + branches: + - main + pull_request: + +permissions: + contents: read + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-go@v6 + with: + go-version: stable + - name: golangci-lint + uses: golangci/golangci-lint-action@v8 + with: + version: v2.5.0