mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
ci: move go install tools to separate action (#17552)
I think using an older version of mockgen on the schmoder CI broke the workflow, so I'm gonna sync it via this action, like we do with the other `make build` dependencies.
This commit is contained in:
14
.github/actions/setup-go-tools/action.yaml
vendored
Normal file
14
.github/actions/setup-go-tools/action.yaml
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
name: "Setup Go tools"
|
||||||
|
description: |
|
||||||
|
Set up tools for `make gen`, `offlinedocs` and Schmoder CI.
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- name: go install tools
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.30
|
||||||
|
go install storj.io/drpc/cmd/protoc-gen-go-drpc@v0.0.34
|
||||||
|
go install golang.org/x/tools/cmd/goimports@v0.31.0
|
||||||
|
go install github.com/mikefarah/yq/v4@v4.44.3
|
||||||
|
go install go.uber.org/mock/mockgen@v0.5.0
|
14
.github/workflows/ci.yaml
vendored
14
.github/workflows/ci.yaml
vendored
@ -249,12 +249,7 @@ jobs:
|
|||||||
uses: ./.github/actions/setup-tf
|
uses: ./.github/actions/setup-tf
|
||||||
|
|
||||||
- name: go install tools
|
- name: go install tools
|
||||||
run: |
|
uses: ./.github/actions/setup-go-tools
|
||||||
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.30
|
|
||||||
go install storj.io/drpc/cmd/protoc-gen-go-drpc@v0.0.34
|
|
||||||
go install golang.org/x/tools/cmd/goimports@v0.31.0
|
|
||||||
go install github.com/mikefarah/yq/v4@v4.44.3
|
|
||||||
go install go.uber.org/mock/mockgen@v0.5.0
|
|
||||||
|
|
||||||
- name: Install Protoc
|
- name: Install Protoc
|
||||||
run: |
|
run: |
|
||||||
@ -860,12 +855,7 @@ jobs:
|
|||||||
uses: ./.github/actions/setup-go
|
uses: ./.github/actions/setup-go
|
||||||
|
|
||||||
- name: Install go tools
|
- name: Install go tools
|
||||||
run: |
|
uses: ./.github/actions/setup-go-tools
|
||||||
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.30
|
|
||||||
go install storj.io/drpc/cmd/protoc-gen-go-drpc@v0.0.34
|
|
||||||
go install golang.org/x/tools/cmd/goimports@v0.31.0
|
|
||||||
go install github.com/mikefarah/yq/v4@v4.44.3
|
|
||||||
go install go.uber.org/mock/mockgen@v0.5.0
|
|
||||||
|
|
||||||
- name: Setup sqlc
|
- name: Setup sqlc
|
||||||
uses: ./.github/actions/setup-sqlc
|
uses: ./.github/actions/setup-sqlc
|
||||||
|
Reference in New Issue
Block a user