Skip to content

Commit

Permalink
Add to validation target
Browse files Browse the repository at this point in the history
Add validation step in the CI pipeline for generated assets

Signed-off-by: Shiva Krishna, Merla <[email protected]>
  • Loading branch information
shivamerla committed Aug 8, 2024
1 parent dab8545 commit b341f03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ jobs:
skip-cache: true
- name: Check golang modules
run: make check-vendor
- name: Check generated assets
run: make validate-generated-assets
test:
name: Unit test
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ generate-clientset: install-tools
--input-base $(CURDIR)/api \
--input "apps/v1alpha1"

validate-generated-assets: manifests generate generate-clientset
validate-generated-assets: manifests generate generate-clientset sync-crds
@echo "- Verifying that the generated code and manifests are in-sync..."
@git diff --exit-code -- api config

Expand Down

0 comments on commit b341f03

Please sign in to comment.