File tree Expand file tree Collapse file tree 3 files changed +9
-28
lines changed
Expand file tree Collapse file tree 3 files changed +9
-28
lines changed Original file line number Diff line number Diff line change 1- on : [push, pull_request]
21name : Linters
2+ on :
3+ - push
4+ - pull_request
35permissions :
46 contents : read
5-
67jobs :
78 test :
89 runs-on : ubuntu-latest
9-
1010 steps :
11+ - name : Checkout Gophercloud
12+ uses : actions/checkout@v4
1113 - uses : actions/setup-go@v5
1214 with :
1315 go-version : ' 1'
14-
15- - uses : actions/checkout@v4
16-
17- - name : Run go fmt
16+ - name : Run linters
1817 run : |
19- ./script/format
20-
21- - name : Run go vet
22- run : |
23- ./script/vet
24-
18+ make lint
19+ # TODO: Use 'go mod tidy -diff' instead once go 1.23 is out
20+ # https://github.com/golang/go/issues/27005
2521 - name : Ensure go.mod is up-to-date
2622 run : |
2723 if [ $(go mod tidy && git diff | wc -l) -gt 0 ]; then git diff && exit 1; fi
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments