Skip to content

Commit

Permalink
cache tools to speed up installs
Browse files Browse the repository at this point in the history
  • Loading branch information
taylormonacelli committed Nov 14, 2024
1 parent d95e30b commit f3be1f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
${{ runner.os }}-go-tools-
- name: Install Tools
run: |
command -v goimports >/dev/null 2>&1 || go install golang.org/x/tools/cmd/goimports@latest
command -v gofumpt >/dev/null 2>&1 || go install mvdan.cc/gofumpt@latest
command -v golines >/dev/null 2>&1 || go install github.com/segmentio/golines@latest
command -v goimports-reviser >/dev/null 2>&1 || go install github.com/incu6us/goimports-reviser/v3@latest
go install golang.org/x/tools/cmd/goimports@latest
go install mvdan.cc/gofumpt@latest
go install github.com/segmentio/golines@latest
go install github.com/incu6us/goimports-reviser/v3@latest
- name: Set GOVERSION environment variable (Linux/macOS)
if: runner.os != 'Windows'
run: echo "GOVERSION=$(go version)" >> $GITHUB_ENV
Expand Down

0 comments on commit f3be1f6

Please sign in to comment.