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:
Pieter Noordhuis 2023-10-27 17:43:44 +02:00 committed by GitHub
parent 5a8cd0c5bc
commit b91fab7d09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -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: |