/.github/workflows/ci-check-repo.yaml: install goimports

This commit is contained in:
Dustin Brown
2021-05-04 18:05:18 -07:00
parent e72ec19870
commit ba29410469

View File

@@ -12,7 +12,13 @@ jobs:
has-changes: ${{ steps.detect-changes.outputs.has-changes }}
commit: ${{ steps.get_commit.outputs.commit }}
steps:
- name: Setup Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.15
- uses: actions/checkout@v2
- name: Install goimports
run: go get golang.org/x/tools/cmd/goimports
- name: Format repo and update licenses
working-directory: ./go
run: |
@@ -46,6 +52,10 @@ jobs:
name: Verify format and committers
runs-on: ubuntu-18.04
steps:
- name: Setup Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.15
- uses: actions/checkout@v2
if: ${{ needs.format.outputs.has-changes == 'true' && needs.format.outputs.commit != '' }}
with: