mirror of https://github.com/databricks/cli.git
Run make fmt from fmt job (#929)
## Changes I noticed we weren't running `goimports` from our formatting job. If we run `make fmt`, we do. ## Tests The fmt job passes.
This commit is contained in:
parent
5a8cd0c5bc
commit
b91fab7d09
|
@ -73,11 +73,13 @@ jobs:
|
|||
# No need to download cached dependencies when running gofmt.
|
||||
cache: false
|
||||
|
||||
- name: Run gofmt
|
||||
- name: Install goimports
|
||||
run: |
|
||||
# -l: list files that were reformatted
|
||||
# -w: write back formatted files to disk
|
||||
gofmt -l -w ./
|
||||
go install golang.org/x/tools/cmd/goimports@latest
|
||||
|
||||
- name: Run make fmt
|
||||
run: |
|
||||
make fmt
|
||||
|
||||
- name: Run go mod tidy
|
||||
run: |
|
||||
|
|
Loading…
Reference in New Issue