Skip to content

Remove node 17 from test workflow, add node 18 #486

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

Merged
merged 2 commits into from
Oct 7, 2022

Conversation

jackbrewer
Copy link
Contributor

@jackbrewer jackbrewer commented Oct 6, 2022

Testing on the (no longer supported) node 17 is blocking our latest Jest upgrade in #465

Jest 29 doesn't support node 17, only 14.15, 16.10, 18+ source
As node 17 has passed its official end of life, I'm going to remove it from our workflow in favour of node 18

Test plan

Check this PR passes its node 18 tests, and didn't run any node 17 ones :)

@netlify
Copy link

netlify bot commented Oct 6, 2022

👷 Deploy Preview for plugin-lighthouse processing.

Name Link
🔨 Latest commit 9fd726f
🔍 Latest deploy log https://app.netlify.com/sites/plugin-lighthouse/deploys/633ef09fa8c88300088f2e62

@jackbrewer jackbrewer marked this pull request as ready for review October 6, 2022 15:30
@jackbrewer jackbrewer requested review from a team and kevinsamoei October 6, 2022 15:30
@@ -32,7 +32,7 @@
"puppeteer": "^18.0.0"
},
"engines": {
"node": ">=14.15 <18"
"node": ">=14.15 <19"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe there is an issue with running lighthouse v9 on node 18+

The reason we added the <18 was because of that. I am okay with removing 17.x in the workflow file but leave <18 here for that reason

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it might not be a problem anymore - GoogleChrome/lighthouse#13874

I would run lighthouse with node 18 just to make sure

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call!

I've just tested using 18.10.0 – running and generating reports is working as expected. I tested the standalone lighthouse module, and again using the netlify plugin.

@jackbrewer jackbrewer merged commit 06367f1 into main Oct 7, 2022
@jackbrewer jackbrewer deleted the jbr/updateWorkflowNodeVersions branch October 7, 2022 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants