From 15fa4997ad311459daecaa3db76ac643dc034e89 Mon Sep 17 00:00:00 2001 From: Anish Asthana Date: Mon, 31 Jul 2023 16:11:27 -0400 Subject: [PATCH] Add github action to ensure that non-client generated functions are up to date Signed-off-by: Anish Asthana --- .../workflows/verify_generated_functions.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/verify_generated_functions.yaml diff --git a/.github/workflows/verify_generated_functions.yaml b/.github/workflows/verify_generated_functions.yaml new file mode 100644 index 000000000..63f600541 --- /dev/null +++ b/.github/workflows/verify_generated_functions.yaml @@ -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