Skip to content

Commit 56d3416

Browse files
committed
Configure GolangCI action
Signed-off-by: Chris Koch <[email protected]>
1 parent 9aa6f7e commit 56d3416

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/golangci-lint.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: golangci-lint
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
permissions:
12+
contents: read
13+
# Optional: allow read access to pull request. Use with `only-new-issues` option.
14+
pull-requests: read
15+
jobs:
16+
golangci:
17+
name: lint
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/setup-go@v3
21+
with:
22+
go-version: '1.20'
23+
- uses: actions/checkout@v3
24+
- name: golangci-lint
25+
uses: golangci/golangci-lint-action@v3
26+
with:
27+
version: latest
28+
only-new-issues: true

0 commit comments

Comments
 (0)