Skip to content

Commit c3b35bb

Browse files
committed
Update the golangci-lint workflow
I followed the instructions at https://github.com/golangci/golangci-lint-action.
1 parent a1cc8c0 commit c3b35bb

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: golangci-lint
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
permissions:
8+
contents: read
9+
pull-requests: read
10+
11+
jobs:
12+
golangci:
13+
name: lint
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v5
17+
- uses: actions/setup-go@v6
18+
with:
19+
go-version: stable
20+
- name: golangci-lint
21+
uses: golangci/golangci-lint-action@v9
22+
with:
23+
version: latest
24+
#args: -D errcheck,unused
25+
only-new-issues: true

0 commit comments

Comments
 (0)