Skip to content
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

Update CI to conform to a standard template and test all supported, non-EOL LTS Node.js releases #302

Merged
merged 4 commits into from
Nov 29, 2024

Conversation

orangejulius
Copy link
Member

@orangejulius orangejulius commented Nov 27, 2024

This PR includes a bunch of commits made by a script that standardizes as much as possible our CI config across all repositories.

Along the way it also ensures we test all Node.js versions that are an LTS release, not EOL, and currently work with this repository. Any Github Actions that were out of date or used old Node.js versions (checkout and setup-node @v2) are also updated.

For the interpolation repository that means Node.js 18 only, as we have to upgrade node-postal to v1.20 for Node.js 20 support. Similarly we need to update better-sqlite3 for Node.js 22 support.

Also, the CI OS version is now hardcoded to ubuntu-22.04. We fooled around with an organization wide CI variable to configure that, but it broke CI in forks and doesn't really help us much, so it's now undone.

If there are any other differences in Github Actions Workflow files, they are also now removed by using a standard template.

Finally, because this repository has a Dockerfile and we just updated the Docker baseimage to support Node.js 18, there is an empty commit to trigger a new major version release.

Connects pelias/pelias#950
Connects pelias/pelias#951

This doesn't really save us much effort and breaks CI on forks.

Connects pelias/pelias#951
We will have to upgrade node-postal to 1.20 to support Node.js 20, and better-sqlite3 before we can support Node.js 22.

This also rewrites our CI config so that all Node.js versions are on one line for ease of future grepping.

Connects pelias/pelias#950
BREAKING CHANGE: The Docker baseimage has been updated to use Node.js 18.20.5, so this repository's Docker image will also use it.

pelias/pelias#950
Copy link
Member

@missinglink missinglink left a comment

Choose a reason for hiding this comment

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

LGTM

@orangejulius orangejulius merged commit df27858 into master Nov 29, 2024
4 checks passed
@orangejulius orangejulius deleted the nodejs-18-and-ci-updates branch November 29, 2024 16:41
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