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

CI updates: Modern Node.js versions, action version updates, standard(-ish) template #113

Merged
merged 6 commits into from
Dec 3, 2024

Conversation

orangejulius
Copy link
Member

@orangejulius orangejulius commented Dec 3, 2024

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

First and foremost, it ensures we test all Node.js versions that are an LTS release, not EOL, and currently work with this repository.

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.

The pbf2json repo is a bit of a special snowflake because it requires Go to be installed. While other repos could just us an exact copy of a standard template, I've manually updated the Actions workflows here to be as similar as possible: they're split into pull request and push workflows that share a common unit test file. But that common file does the Go install as needed. I updated the setup-go action to v5, since internally that updates its own Node.js version, avoiding warnings during CI.

Note: The v5 setup-go action seems fairly new, and I noticed this concerning issue report. Doesn't seem to affect us yet, or could be user error, but we should keep an eye out.

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

This just keeps us up to date and avoids warnings for deprecated Node.js versions in CI.
We were all over the place with these, with some going all the way back to Ubuntu 16!

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

pelias/pelias#950
@orangejulius orangejulius merged commit 97e3c4b into master Dec 3, 2024
6 checks passed
@orangejulius orangejulius deleted the nodejs-18-and-ci-updates-with-workflow-changes branch December 3, 2024 12:23
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.

1 participant