-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds Makefile Targets for API and UI and Updates the pre-submit PR script #277
Conversation
could you document the command available through make file and what they do? |
Where that file should be located ?? |
Development.md |
Sounds good will update the pr thanks 👍🏻 |
|
||
CI=true npm test || { | ||
make ui-test || { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we removing CI=true
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added that in the specified make target
For e.g.
# Make target for UI Unit Test
.PHONY: ui-test
ui-test:
@echo "----------------------------"
@echo "-- Running UI Unit Tests --"
@echo "----------------------------"
cd ui && npm clean-install && CI=true npm test
should we add |
/lgtm |
/lgtm |
Makefile
Outdated
@echo "----------------------------" | ||
@echo "- Generating v1 API Design... " | ||
@echo "----------------------------" | ||
cd api && cd v1 && goa gen github.com/tektoncd/hub/api/v1/design |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how does this work?
cd api && goa gen github.com/tektoncd/hub/api/design
when we do this.. does the directory context changes only for that command?
and
again below it does
cd api/v1
so each command runs in a separate context/terminal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes the directory content changes only for that command and also the command runs in a separate context
/lgtm |
api/update.sh
Outdated
@@ -0,0 +1 @@ | |||
go test $(go list -f '{{ .ImportPath }} {{ .TestImports }}' ./... | grep gotest.tools/v3/golden | awk '{print $1}' | tr '\n' ' ') -test.update-golden=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this requires to be in separate file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I guess.... we can use it independently as well
/approve |
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sm43 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Makefile
Outdated
@echo "----------------------------" | ||
@echo "-- Generating Golden Files... --" | ||
@echo "----------------------------" | ||
cd api && go mod vendor && bash update.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cd api && go mod vendor && bash update.sh | |
cd api && go mod vendor && bash update-golden-files.sh |
- This patch adds a Makefile targets for - API: GOA Generation, Unit Test, Lint, Build, Update Golden files - UI: Unit Test, Lint, Build - Yamllint check Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
/lgtm |
This patch adds a Makefile targets for
Signed-off-by: Puneet Punamiya ppunamiy@redhat.com
Changes
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.