Skip to content

Commit cb09689

Browse files
committed
add lint check in workflow
1 parent ea5120f commit cb09689

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/go.yml

+7
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ jobs:
2424
with:
2525
go-version: '1.23'
2626

27+
- name: Install golangci-lint
28+
run: |
29+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1
30+
31+
- name: Run golangci-lint
32+
run: golangci-lint run
33+
2734
- name: Build
2835
run: go build -o server ./cmd
2936

0 commit comments

Comments
 (0)