Compare commits
1 Commits
b35976ce7b
...
50b33f35bc
| Author | SHA1 | Date | |
|---|---|---|---|
| 50b33f35bc |
@@ -1,23 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user