Skip to content

Commit 24c8758

Browse files
committed
Add golangci-lint-action
Let's use the recommended github action instead of run it from a job Signed-off-by: German Maglione <[email protected]>
1 parent e3e6528 commit 24c8758

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: golangci-lint
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ main ]
7+
8+
permissions:
9+
contents: read
10+
# Optional: allow read access to pull request. Use with `only-new-issues` option.
11+
pull-requests: read
12+
13+
jobs:
14+
golangci:
15+
strategy:
16+
matrix:
17+
go: [stable]
18+
os: [ubuntu-latest, macos-latest]
19+
name: lint
20+
runs-on: ${{ matrix.os }}
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: actions/setup-go@v5
24+
with:
25+
go-version: ${{ matrix.go }}
26+
- name: golangci-lint
27+
uses: golangci/golangci-lint-action@v6
28+
with:
29+
version: v1.60

0 commit comments

Comments
 (0)