Skip to content

Commit

Permalink
Add github action to ensure that non-client generated functions are u…
Browse files Browse the repository at this point in the history
…p to date

Signed-off-by: Anish Asthana <[email protected]>
  • Loading branch information
anishasthana committed Jul 31, 2023
1 parent ba2e1fc commit 15fa499
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/verify_generated_functions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Verify that generated (non-client) code is up to date
on:
push:
branches:
- '**'
paths:
- '**.go'
tags-ignore:
- 'v*'
pull_request:
paths:
- '**.go'
jobs:
verify-generated-functions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Verify that the DeepCopy, DeepCopyInto, and DeepCopyObject method implementations have been generated
run: make generate && git diff --exit-code

0 comments on commit 15fa499

Please sign in to comment.