add lint action
All checks were successful
Go Lint / lint (push) Successful in 22m3s
Go Lint / lint (pull_request) Successful in 19m22s

This commit is contained in:
2025-12-23 18:59:33 +03:00
parent 859a8d88f7
commit b35976ce7b

23
.gitea/workflows/lint.yml Normal file
View File

@@ -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