File tree 2 files changed +27
-7
lines changed
2 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 24
24
with :
25
25
go-version : ' 1.23'
26
26
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
-
34
27
- name : Build
35
28
run : go build -o server ./cmd
36
29
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments