-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Upgrade node to 18 #2533
Upgrade node to 18 #2533
Conversation
cc @zaiste xmas is earlier 🎁 ;) |
This can be one of the best presents I ever received ;) |
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.
So much gratefulness within one PR <3 see @krzysztofzuraw you made them a day :D
Let's test this carefully. The node is just a builder for us so if the building process works we can merge it
798c930
7b99a35
30869dd
to
7b99a35
Compare
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.
lgtm
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.
to the moon 🚀
Co-authored-by: Karolina Rakoczy <[email protected]>
Fixes: #2525. This PR updates Node.js to the current LTS:
18.x.x
.What was done
18.x.x
in:.nvmrc
files instead of the hardcoded version in workflowsbuild
andstart
npm scripts with generating types intoprebuild
&prestart
(for better readability)Problems
Broken webpack
Starting from Node.js version
17.x.x
maintainers deprecate legacy OpenSSL provider. This is causing our Webpack to throwError: error:0308010C:digital envelope routines::unsupported
while running any command. Suggested workaround is to addNODE_OPTIONS=--openssl-legacy-provider
every time we use Webpack in our scripts. There is no fix in the current Webpack release yet 😞.What we can do?
16.x.x
for now and upgrade the Webpack to the newest version (in other PR)18.x.x
and add flags plus upgrade the Webpack to the newest version (in other PR). In this solution, we can't use Node.js in16.x.x
asNODE_OPTIONS
are incompatible between 16 and 18.Pull Request Checklist
[data-test-id]
are added for new elementsTest environment config
API_URI=https://automation-dashboard.staging.saleor.cloud/graphql/
MARKETPLACE_URL=https://apps.saleor.io
SALEOR_APPS_ENDPOINT=https://apps.saleor.io/api/saleor-apps
Do you want to run more stable tests?
To run all tests, just select the stable checkbox. To speed up tests, increase the number of containers. Tests will be re-run only when the "run e2e" label is added.
CONTAINERS=2