From b35976ce7be7205d088abafa53f20216654ff934 Mon Sep 17 00:00:00 2001 From: andrey Date: Tue, 23 Dec 2025 18:59:33 +0300 Subject: [PATCH] add lint action --- .gitea/workflows/lint.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .gitea/workflows/lint.yml diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml new file mode 100644 index 0000000..25f3928 --- /dev/null +++ b/.gitea/workflows/lint.yml @@ -0,0 +1,23 @@ +name: Go Lint + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest # Use a Gitea Actions runner label + steps: + - name: Check out repository code + uses: actions/checkout@v4 # Action to clone the repo + + - name: Set up Go + uses: actions/setup-go@v5 # Action to install a specific Go version + with: + go-version: '1.22' # Specify your required Go version + + - name: Run golangci-lint + uses: golangci/golangci-lint-action@v3 # Use the golangci-lint action + with: + version: v1.54.0 # Specify the linter version + # Optional: additional arguments + args: --verbose +