-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Testing: Add CI workflow covering Node.js 12 #28139
Conversation
Size Change: +2.36 kB (0%) Total Size: 1.28 MB
ℹ️ View Unchanged
|
b917976
to
6a16fa1
Compare
6a16fa1
to
567f569
Compare
Should we use a matrix for the "static tests" job instead of adding a dedicated job? |
That's an interesting idea I should consider in the first place. You need to run |
Now, I see that we discussed that it should run only when merging with |
Description
At the moment Gutenberg runs all checks with the active LTS version of Node.js that is 14.x. However, we declare support for Node.js 12.x in packages we distribute on npm. This is an effort to catch any regressions that might happen moving forward.
It was triggered by #27934 where the minimum version of Node.js was set to Node 12.x for several packages. It was also discussed during the weekly WordPress Core JS chat:
https://wordpress.slack.com/archives/C5UNMSU4R/p1609860339178800
(link requires to log in at https://make.wordpress.org/chat/)
This PR enables checks using Node.js 12 for:
It also enables those check on
wp/trunk
branch that is used for npm publishing.How has this been tested?
See GitHub actions below 😄
All of them should still pass including those that run with Node 12.
With the current setup Create Block workflow doesn't trigger when there are no changes in the
packages
folder.