From 6921b16dfedcd28b9ab8e02447edf4415402756c Mon Sep 17 00:00:00 2001 From: Evan Baker Date: Thu, 17 Mar 2022 19:03:45 +0000 Subject: [PATCH] add blocking ci step to ensure CRDs are generated Signed-off-by: GitHub --- .github/workflows/crdgen.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/crdgen.yaml diff --git a/.github/workflows/crdgen.yaml b/.github/workflows/crdgen.yaml new file mode 100644 index 0000000000..9d5b6a1520 --- /dev/null +++ b/.github/workflows/crdgen.yaml @@ -0,0 +1,25 @@ +name: crdgen +on: + workflow_dispatch: + pull_request: +jobs: + crdgen: + strategy: + matrix: + go-version: ['1.17'] + os: [ubuntu-latest] + name: CRDs are Generated + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + - name: Regenerate NodeNetworkConfig CRD + run: make -C crd/nodenetworkconfig + - name: Regenerate MultitenantNetworkContainer CRD + run: make -C crd/multitenantnetworkcontainer + - name: Fail if the tree is dirty + run: test -z "$(git status --porcelain)"