Skip to content

Commit 721ce0f

Browse files
authored
feat: Added linter (#5)
1 parent 340f8ce commit 721ce0f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/lint.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Lint
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
pull_request:
8+
types: [ opened, synchronize ]
9+
branches:
10+
- main
11+
12+
workflow_dispatch:
13+
14+
jobs:
15+
lint:
16+
name: Lint Go code
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- uses: actions/setup-go@v5
24+
with:
25+
go-version: 1.23.0
26+
27+
- name: golangci-lint
28+
uses: golangci/golangci-lint-action@v6
29+
with:
30+
version: v1.62.0
31+
args: --timeout=3m

0 commit comments

Comments
 (0)