Skip to content

Commit 31e45f5

Browse files
julienduchesnejdbaldry
authored andcommitted
Add action for golangci-lint
Signed-off-by: Julien Duchesne <[email protected]>
1 parent a946e4c commit 31e45f5

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/golangci-lint.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: golangci-lint
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request: {}
7+
permissions:
8+
contents: read
9+
jobs:
10+
golangci:
11+
name: lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: golangci-lint
17+
uses: golangci/golangci-lint-action@v2
18+
with:
19+
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
20+
version: v1.42

0 commit comments

Comments
 (0)