Skip to content

Commit 9e1f61d

Browse files
committed
feat: introduce golang ci lint action
Signed-off-by: Tung Bui <[email protected]>
1 parent 3215b60 commit 9e1f61d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/go-lint.yml

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

0 commit comments

Comments
 (0)