ci: install gofumpt and golangci-lint in same step to fix PATH
Some checks failed
CI / Lint (push) Failing after 40s
CI / Test (push) Failing after 3m57s
CI / Build (push) Has been skipped
CI / Docker (push) Has been skipped

Previous attempts failed because go install puts binaries in GOPATH/bin
which may not be in PATH for subsequent steps. Combine into fewer steps.
This commit is contained in:
xfy 2026-06-12 15:29:32 +08:00
parent a5f65a8040
commit ff602ee183

View File

@ -32,11 +32,10 @@ jobs:
exit 1
fi
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
- name: Run lint
run: golangci-lint run ./...
run: |
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
golangci-lint run ./...
test:
name: Test