Skip to content

Commit c09f46b

Browse files
committed
Fix lint wf
1 parent dac9ef4 commit c09f46b

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: golangci-lint
2+
3+
on:
4+
push:
5+
branches: [ "main", "dev" ]
6+
pull_request:
7+
branches: [ "main", "dev" ]
8+
types: [opened, synchronize, reopened, ready_for_review]
9+
10+
jobs:
11+
golangci:
12+
name: lint
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
go: ['1.19', '1.20', '1.21']
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v3
21+
22+
- name: Set up Go
23+
uses: actions/setup-go@v4
24+
with:
25+
go-version: ${{ matrix.go }}
26+
27+
- name: Run golangci-lint
28+
uses: golangci/golangci-lint-action@v3
29+
with:
30+
version: latest
31+
config: .golangci.yml
32+
33+
- name: Upload lint results
34+
uses: actions/upload-artifact@v2
35+
if: failure()
36+
with:
37+
name: golangci-lint-results
38+
path: golangci-lint-report.txt
File renamed without changes.

0 commit comments

Comments
 (0)