Skip to content

Commit a95fff2

Browse files
authored
add blocking ci step to ensure CRDs are generated (#1289)
Signed-off-by: GitHub <[email protected]>
1 parent 181fbf8 commit a95fff2

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/crdgen.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: crdgen
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
jobs:
6+
crdgen:
7+
strategy:
8+
matrix:
9+
go-version: ['1.17']
10+
os: [ubuntu-latest]
11+
name: CRDs are Generated
12+
runs-on: ${{ matrix.os }}
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
- uses: actions/setup-go@v2
18+
with:
19+
go-version: ${{ matrix.go-version }}
20+
- name: Regenerate NodeNetworkConfig CRD
21+
run: make -C crd/nodenetworkconfig
22+
- name: Regenerate MultitenantNetworkContainer CRD
23+
run: make -C crd/multitenantnetworkcontainer
24+
- name: Fail if the tree is dirty
25+
run: test -z "$(git status --porcelain)"

0 commit comments

Comments
 (0)