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.
|
# No need to download cached dependencies when running gofmt.
|
||||||
cache: false
|
cache: false
|
||||||
|
|
||||||
- name: Run gofmt
|
- name: Install goimports
|
||||||
run: |
|
run: |
|
||||||
# -l: list files that were reformatted
|
go install golang.org/x/tools/cmd/goimports@latest
|
||||||
# -w: write back formatted files to disk
|
|
||||||
gofmt -l -w ./
|
- name: Run make fmt
|
||||||
|
run: |
|
||||||
|
make fmt
|
||||||
|
|
||||||
- name: Run go mod tidy
|
- name: Run go mod tidy
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue