Skip to content

Commit 15fa499

Browse files
committed
Add github action to ensure that non-client generated functions are up to date
Signed-off-by: Anish Asthana <[email protected]>
1 parent ba2e1fc commit 15fa499

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Verify that generated (non-client) code is up to date
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
paths:
7+
- '**.go'
8+
tags-ignore:
9+
- 'v*'
10+
pull_request:
11+
paths:
12+
- '**.go'
13+
jobs:
14+
verify-generated-functions:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Verify that the DeepCopy, DeepCopyInto, and DeepCopyObject method implementations have been generated
20+
run: make generate && git diff --exit-code

0 commit comments

Comments
 (0)