File tree Expand file tree Collapse file tree 2 files changed +27
-7
lines changed Expand file tree Collapse file tree 2 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 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
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