From f126df46085e610dbec27a481200409cc2e2ae29 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Fri, 7 Jan 2022 10:55:40 +0400 Subject: [PATCH] run go generate on CI --- .github/actions/go-check-setup/action.yml | 9 +++++++++ .github/workflows/go-check-config.json | 3 +++ 2 files changed, 12 insertions(+) create mode 100644 .github/actions/go-check-setup/action.yml create mode 100644 .github/workflows/go-check-config.json diff --git a/.github/actions/go-check-setup/action.yml b/.github/actions/go-check-setup/action.yml new file mode 100644 index 0000000..744d742 --- /dev/null +++ b/.github/actions/go-check-setup/action.yml @@ -0,0 +1,9 @@ +runs: + using: "composite" + steps: + - name: Install mockgen + shell: bash + run: go install github.com/golang/mock/mockgen@v1.6.0 + - name: Install goimports + shell: bash + run: go install golang.org/x/tools/cmd/goimports@latest diff --git a/.github/workflows/go-check-config.json b/.github/workflows/go-check-config.json new file mode 100644 index 0000000..4b37308 --- /dev/null +++ b/.github/workflows/go-check-config.json @@ -0,0 +1,3 @@ +{ + "gogenerate": true +}