-
Notifications
You must be signed in to change notification settings - Fork 913
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
ci: add codeQuality job to run lint and format task #3922
ci: add codeQuality job to run lint and format task #3922
Conversation
92c4c67
to
ae00adc
Compare
eb90dd4
to
ea4f7bb
Compare
Ohhh, wow, I was just wondering because I thought we already have this. |
Sure, no problem! |
Just in here is fine, thank you so much! |
ea4f7bb
to
a37c8c7
Compare
|
return Promise.all([ | |
check(['--missing', '--no-dev', '.']), | |
check(['--extra', '--no-dev', '.']), | |
]) | |
.then((tasks) => [null, tasks.map((t) => t.stdout).join('\n')]) | |
.catch((err) => [err]); |
pkg
task
Alongside deps
task there is also a pkg
task which performs some check on the output of yarn pack
command.
This one is failing right now:
Conclusion
If we have to restore pkg
and deps
tasks,
I strongly recommend to do this separately from this PR due to the fact that are not working right now.
a37c8c7
to
a2d32cc
Compare
Sure, let's do this. |
a2d32cc
to
2b780be
Compare
And the last nit from me is that, given that now |
2b780be
to
d24ca47
Compare
@marcalexiei wanna move the task below the build one as knocte suggested? btw, if any of you is interested you can join the new discord channel, which is is just empty currently: |
All changes have been applied. |
@knocte After switching everything to ESM and therefor to node v20 you know how to handle this?: |
This reverts commit dccc081.
This reverts commit dccc081.
Description
Add a new
codeQuality
job insideCI
workflow.The new job runs before
build
andnodeJsBaselineAptCompatibility
.Executed task are:
yarn build
yarn format
yarn lint
This should avoid lints error addition if someone forgets to run
yarn lint
.Motivation and Context
During #3850 I noticed that a lint issue fix was performed with a separate commit.
Basically
config-nx-scopes
was missing@commitlint/types
dependency and runningyarn lint
shows that error.You can see the same fix also on the fix lodash PR
Usage examples
N/A
How Has This Been Tested?
N/A
Types of changes
Checklist: