ci: install gofumpt and golangci-lint in same step to fix PATH
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:
parent
a5f65a8040
commit
ff602ee183
@ -32,11 +32,10 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Install golangci-lint
|
|
||||||
run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
|
|
||||||
|
|
||||||
- name: Run lint
|
- name: Run lint
|
||||||
run: golangci-lint run ./...
|
run: |
|
||||||
|
go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
|
||||||
|
golangci-lint run ./...
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user