Skip to content

Commit 9f6d403

Browse files
committed
fix lint action
1 parent cb09689 commit 9f6d403

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
lines changed

.github/workflows/go.yml

-7
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ 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-
3427
- name: Build
3528
run: go build -o server ./cmd
3629

.github/workflows/golangci-lint.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: golangci-lint
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- master
7+
pull_request:
8+
branches:
9+
- main
10+
- master
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
golangci:
17+
name: lint
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-go@v5
22+
with:
23+
go-version: stable
24+
- name: golangci-lint
25+
uses: golangci/golangci-lint-action@v6
26+
with:
27+
version: v1.60

0 commit comments

Comments
 (0)