Skip to content

Commit 2c4b23e

Browse files
committed
feat: add golangci-lint action to github workflow
1 parent 228ceb0 commit 2c4b23e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/lint.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: golangci-lint
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
golangci:
15+
name: lint
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
19+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5
20+
with:
21+
go-version: 1.24.1
22+
- name: golangci-lint
23+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9
24+
with:
25+
version: v2.1.6

0 commit comments

Comments
 (0)