Files
my-rook-config/.github/workflows/codegen.yml
T
Sébastien Han af5a7f4df8 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>
2020-08-25 19:19:15 +02:00

21 lines
352 B
YAML

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