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: upgrade GitHub actions to Node.js v16 🚒 #89

Merged
merged 1 commit into from
Jul 13, 2022
Merged

Conversation

navarroaxel
Copy link
Contributor

@navarroaxel navarroaxel commented Jul 13, 2022

What does it do?

Upgrade the GitHub Actions to versions with node16 as runtime.

Why the change?

Node.js v12 is deprecated and the old versions use node12 as runtime.

How can this be tested?

Running the GitHub workflows for this repo.

@navarroaxel navarroaxel requested a review from MasterOdin July 13, 2022 10:54
Copy link
Member

@owenvoke owenvoke left a comment

Choose a reason for hiding this comment

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

LGTM! But, out of interest, what's the benefit to removing the name? 🤔

@navarroaxel navarroaxel changed the title ci: upgrade GitHub actions to Node.js v16 ci: upgrade GitHub actions to Node.js v16 🚒 Jul 13, 2022
@navarroaxel navarroaxel merged commit 5fdedd5 into master Jul 13, 2022
@navarroaxel navarroaxel deleted the fix/ci branch July 13, 2022 13:07
@MasterOdin
Copy link
Contributor

The PR title is also totally wrong for what this does 😞

@navarroaxel
Copy link
Contributor Author

LGTM! But, out of interest, what's the benefit to removing the name? thinking

IMHO I prefer the action name (use) for common actions, or the run description if it's a simple command, because it's easier to see what kind of command is failing. An example from a project where I'm working:

  ✓ Set up job
  ✓ Run actions/checkout@v3
  ✓ Run actions/setup-node@v3
  ✓ Run npm ci --legacy-peer-deps
  ✓ Build Android Release
  ✓ Post Run actions/setup-node@v3
  ✓ Post Run actions/checkout@v3
  ✓ Complete job

@navarroaxel
Copy link
Contributor Author

The PR title is also totally wrong for what this does disappointed

But I upgrade the runtime to node16 🤔. For me workflow is for this repo, action is a job step "tool"
Do you think the node16 is ambiguous if it's talking about the repo or the runtime of the checkout action?

@MasterOdin
Copy link
Contributor

MasterOdin commented Jul 13, 2022

"Update actions to latest versions" which is more descriptive, and then in the PR, say "the breaking change is that these actions now use the node16 runtime. This is incompatible with older self-hosted action runner versions, but since we're not using self-hosted runners, it doesn't matter".

Like, the runtime that a given action uses is just an implementation detail, and does not matter to the containing workflow. Like, they could have switched from the JS runtime to docker runtime instead, and I wouldn't expect the title to be "ci: upgrade GitHub actions to Docker". Treat upgrading the versions of actions the same as upgrading versions of any other dependency you might have in your repo.

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.

3 participants