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