Skip to content

Commit

Permalink
Add generations and validations to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
guy-har committed Mar 19, 2024
1 parent b3680bf commit a361192
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ gen-api: docs/assets/js/swagger.yml ## Run the swagger code generator
gen-code: gen-api ## Run the generator for inline commands
$(GOGENERATE) \
./pkg/actions \
./pkg/auth/ \
./pkg/authentication \
./pkg/graveler \
./pkg/graveler/committed \
./pkg/graveler/sstable \
Expand Down Expand Up @@ -264,6 +266,7 @@ validate-proto: gen-proto ## build proto and check if diff found
validate-mockgen: gen-code
git diff --quiet -- pkg/actions/mock/mock_actions.go || (echo "Modification verification failed! pkg/actions/mock/mock_actions.go"; false)
git diff --quiet -- pkg/auth/mock/mock_auth_client.go || (echo "Modification verification failed! pkg/auth/mock/mock_auth_client.go"; false)
git diff --quiet -- pkg/authentication/api/mock_authentication_client.go || (echo "Modification verification failed! pkg/authentication/api/mock_authentication_client.go"; false)
git diff --quiet -- pkg/graveler/committed/mock/batch_write_closer.go || (echo "Modification verification failed! pkg/graveler/committed/mock/batch_write_closer.go"; false)
git diff --quiet -- pkg/graveler/committed/mock/meta_range.go || (echo "Modification verification failed! pkg/graveler/committed/mock/meta_range.go"; false)
git diff --quiet -- pkg/graveler/committed/mock/range_manager.go || (echo "Modification verification failed! pkg/graveler/committed/mock/range_manager.go"; false)
Expand Down

0 comments on commit a361192

Please sign in to comment.