run the check for go generated files on Github Actions instead of Travis

This commit is contained in:
Marten Seemann
2020-08-06 15:07:39 +07:00
parent 4d1d05e4bf
commit 91e5ca4947
7 changed files with 49 additions and 32 deletions

19
.github/workflows/go-generate.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
on: [push, pull_request]
jobs:
gogenerate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2.1.1
- name: Install dependencies
run: go build
- name: Install code generators
run: |
go install -v github.com/cheekybits/genny
go install -v github.com/golang/mock/mockgen
go install -v golang.org/x/tools/cmd/goimports
- name: Run code generators
run: |
export GOPATH=$(go env GOPATH)
export PATH=$PATH:$GOPATH/bin
.github/workflows/go-generate.sh