-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
chore(www): add a --watch
flag for local test debugging
#1712
Conversation
Codecov ReportPatch has no changes to coverable lines. 📢 Thoughts on this report? Let us know!. |
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 would much prefer we do one of the following to keep behavior consistent across actions:
- do the inverse behind a
--watch
flag - modify all the actions to default to a watch process and take a
--ci
flag for the single run case
src/www/test.action.mjs
Outdated
* @param {string[]} parameters The list of action arguments passed in. | ||
* @returns {Object} Object containing whether to run as part of CI. | ||
*/ | ||
function getActionParameters(cliArguments) { |
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.
nit: I kinda feel like this function just adds indirection without much benefit
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.
Fair point. I mostly did this to keep it consistent with some of the other scripts I saw using this type of helper function. Removing it.
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.
In those cases the helper functions are shared across actions
41ddfe5
to
e399bde
Compare
Done. Went with the |
--ci
flag for single runs--watch
flag for local test debugging
e399bde
to
d6dd6a4
Compare
Right now when running
npm run action www/test
you get a single run by default, which is useful for CI workflows. I'm adding a--watch
flag to help in debugging by keeping the server alive and re-running tests on changes.