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 Ubuntu and other Github Action versions in CI #500

Merged
merged 3 commits into from
Dec 3, 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 schema repository, 20 and 22 support was added in #497, so fortunately we were already totally up to date with Node.js versions, so nothing had to be done.

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 schema repository is a bit of a special snowflake due to Elasticsearch, so we don't exactly use a standard template here, but it's not that dissimilar.

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 just keeps us up to date and avoids warnings for deprecated Node.js versions in CI.
This doesn't really save us much effort and breaks CI on forks.

Connects pelias/pelias#951
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
@orangejulius orangejulius changed the title Nodejs 18 and ci updates Update Ubuntu and Node.js versions in CI Nov 27, 2024
@orangejulius orangejulius changed the title Update Ubuntu and Node.js versions in CI Update Ubuntu and other Github Action versions in CI Nov 27, 2024
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

@@ -6,12 +6,12 @@ jobs:
strategy:
matrix:
os:
- ${{ vars.UBUNTU_VERSION }}
- ubuntu-22.04
Copy link
Member

Choose a reason for hiding this comment

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

for these would it make sense to have it overridable but also provide a default such as:

${{ vars.UBUNTU_VERSION || 'ubuntu-22.04' }}

https://stackoverflow.com/a/73961472

Copy link
Member

Choose a reason for hiding this comment

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

Or even better, is it possible to derive that string from our org if not defined in the org of a fork?

@orangejulius orangejulius merged commit 41bd2d1 into master Dec 3, 2024
10 checks passed
@orangejulius orangejulius deleted the nodejs-18-and-ci-updates branch December 3, 2024 12:28
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