ci: update lint workflow action versions #21
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
The GitHub Actions workflow .github/workflows/lint.yml is using outdated JavaScript actions.
v2
v4
v1
v4
These actions attempt to run on
node12
(end-of-life Apr 2022) and are forcefully migrated on the fly to use instead the supportednode20
version.Since there is no selection of a Node.js version in the use of actions/setup-node, it is installing Node.js
v10.24.1
(end-of-life Apr 2021). This is in contrast to the default Node.js version of ubuntu-22.04v18.20.5
or ubuntu-24.04v20.18.1
. The workflow usesubuntu-latest
which is currently in the process of migrating fromubuntu-22.04
toubuntu-24.04
.Change
Update the action versions to the currently supported versions, and use Node.js Active LTS - at this time
v22
- as most stable recommended version.v4
v4
node-version: 22