ci: run make codegen validation in workflow

Fail if a PR is submitted and has not run "make codegen"

Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Sébastien Han committed 2020-08-25 19:19:15 +02:00
1 parent 69f6e87fd1
commit af5a7f4df8
2 files changed
+30

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
name: Codegen
on: [pull_request]
jobs:
codegen:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- uses: actions/setup-go@v2
with:
go-version: 1.13
- name: run codegen
run: GOPATH=$(go env GOPATH) make codegen
- name: validate codegen
run: hack/validate-codegen.sh