File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 3636 - uses : actions/setup-go@v5
3737 with :
3838 go-version-file : go.mod
39- cache : false # for this job we rely on golangci-lint-action's cache
40- - name : Lint (other)
39+ - run : go mod download
40+ - name : Lint
4141 run : script/lint
42- - name : Lint (golangci-lint)
43- uses : golangci/golangci-lint-action@v4
44- with :
45- version : v1.55.2
42+ - name : Formatting
43+ run : CHECKONLY=1 script/format
Original file line number Diff line number Diff line change @@ -7,13 +7,14 @@ set -eu
77cd " $( dirname " $0 " ) "
88cd ..
99
10+ if [ " $GITHUB_ACTIONS " = " true" ]; then
11+ set -- " $@ " --out-format=github-actions
12+ fi
13+
1014go generate ./...
1115if ! git diff --exit-code > /dev/null; then
1216 echo " Error: generated code is not up-to-date! Run 'go generate ./...' and update your branch." >&2
1317 exit 1
1418fi
1519
16- # On GitHub actions, this is run as a separate task
17- if [ " $GITHUB_ACTIONS " != " true" ]; then
18- exec go run github.com/golangci/golangci-lint/cmd/
[email protected] run
19- fi
20+ exec go run github.com/golangci/golangci-lint/cmd/
[email protected] run
" $@ "
You can’t perform that action at this time.
0 commit comments