[GH-ISSUE #910] Enhancement: node16 runner #539

Closed
opened 2026-03-01 21:44:17 +03:00 by kerem · 19 comments
Owner

Originally created by @beeequeue on GitHub (Dec 2, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/910

Describe feature

The node16 has finally been added

https://github.com/actions/runner/releases/tag/v2.285.0
https://github.com/actions/runner/issues/772
https://github.com/actions/runner/pull/1439

Currently I get this error when trying to run (after changing the image used to node:16-buster-slim):
Error: The runs.using key in action.yml must be one of: [composite docker node12], got node16

Originally created by @beeequeue on GitHub (Dec 2, 2021). Original GitHub issue: https://github.com/nektos/act/issues/910 ## Describe feature The `node16` has finally been added https://github.com/actions/runner/releases/tag/v2.285.0 https://github.com/actions/runner/issues/772 https://github.com/actions/runner/pull/1439 Currently I get this error when trying to run (after changing the image used to `node:16-buster-slim`): `Error: The runs.using key in action.yml must be one of: [composite docker node12], got node16`
kerem 2026-03-01 21:44:17 +03:00
Author
Owner

@catthehacker commented on GitHub (Dec 2, 2021):

node16 is not available on whole GHA yet

<!-- gh-comment-id:984649872 --> @catthehacker commented on GitHub (Dec 2, 2021): `node16` is not available on whole GHA yet
Author
Owner

@beeequeue commented on GitHub (Dec 2, 2021):

Then we can wait until it is 😄

<!-- gh-comment-id:984662475 --> @beeequeue commented on GitHub (Dec 2, 2021): Then we can wait until it is 😄
Author
Owner

@catthehacker commented on GitHub (Dec 2, 2021):

I've already added node16 to the act rewrite that has been discussed on our Gitter if anyone wants to test node16
https://github.com/catthehacker/act-fork/tree/cat/wip%2Factionlint

TODO tasks for act:

  • add node16 to supported actions
  • add NodeJS 16.x to medium image
  • change micro image to Node 16.x as GHA runners switch to it as well (https://github.com/actions/virtual-environments/issues/4446)
  • add logic to act to use Node 16/12 for node16/node12 respectively, micro image will have to run with single version
<!-- gh-comment-id:984669658 --> @catthehacker commented on GitHub (Dec 2, 2021): I've already added `node16` to the `act` rewrite that has been discussed on our Gitter if anyone wants to test `node16` https://github.com/catthehacker/act-fork/tree/cat/wip%2Factionlint TODO tasks for `act`: - [x] add `node16` to supported actions - [x] add NodeJS 16.x to `medium` image - [x] change `micro` image to Node 16.x as GHA runners switch to it as well (https://github.com/actions/virtual-environments/issues/4446) - [ ] add logic to `act` to use Node 16/12 for `node16`/`node12` respectively, `micro` image will have to run with single version
Author
Owner

@josecelano commented on GitHub (Jan 20, 2022):

Hi, I'm getting that error:

Error: The runs.using key in action.yml must be one of: [composite docker node12], got node16

I'm running act with:

docker pull node:16-buster-slim
act -P ubuntu-latest:node:16-buster-slim - p -w ./.github/workflows/test.yml -j hello_world_job

I have created this sample repo to reproduce the error.

Is this already working @catthehacker? I see there are two pending tasks above but the PR was merged.

<!-- gh-comment-id:1017530621 --> @josecelano commented on GitHub (Jan 20, 2022): Hi, I'm getting that error: ``` Error: The runs.using key in action.yml must be one of: [composite docker node12], got node16 ``` I'm running act with: ``` docker pull node:16-buster-slim act -P ubuntu-latest:node:16-buster-slim - p -w ./.github/workflows/test.yml -j hello_world_job ``` I have created this [sample repo](https://github.com/josecelano/gh-action-sample-node-16) to reproduce the error. Is this already working @catthehacker? I see there are two pending tasks above but the PR was merged.
Author
Owner

@catthehacker commented on GitHub (Jan 20, 2022):

Is this already working @catthehacker?

It is, but most likely you are using v0.2.25 which doesn't have that change

<!-- gh-comment-id:1017536955 --> @catthehacker commented on GitHub (Jan 20, 2022): > Is this already working @catthehacker? It is, but most likely you are using v0.2.25 which doesn't have that change
Author
Owner

@NickLiffen commented on GitHub (Jan 31, 2022):

👋 @catthehacker any thought on when:

[ ] add NodeJS 16.x to medium image

Is going to be completed. I am using the medium image and node16 but getting this error, it would be great if this was supported 💯 ❤️

I ensured I was using the latest and greatest act

<!-- gh-comment-id:1025650551 --> @NickLiffen commented on GitHub (Jan 31, 2022): 👋 @catthehacker any thought on when: > [ ] add NodeJS 16.x to medium image Is going to be completed. I am using the medium image and node16 but getting this error, it would be great if this was supported 💯 ❤️ I ensured I was using the latest and greatest `act`
Author
Owner

@beeequeue commented on GitHub (Jan 31, 2022):

Installing the latest master build with go install github.com/nektos/act@master works for me, I can run my actions with using: node16

<!-- gh-comment-id:1025703874 --> @beeequeue commented on GitHub (Jan 31, 2022): Installing the latest master build with `go install github.com/nektos/act@master` works for me, I can run my actions with `using: node16`
Author
Owner

@NickLiffen commented on GitHub (Jan 31, 2022):

Really 🤔

This is how I am installing it.

E.G

curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash

I re-build my environment every night to pull the latest and greatest.

I don't have go installed (and don't really want to install go just for the sake of pulling this down).

I just double-checked and it doesn't work for me. 🤔 (Something Codespaces is meant to solve haha)

You are welcome to pull my codespace and test it out, but it isn't working for me 👀

<!-- gh-comment-id:1025721688 --> @NickLiffen commented on GitHub (Jan 31, 2022): Really 🤔 [This](https://github.com/NickLiffen/csenv/blob/main/Dockerfile#L54) is how I am installing it. E.G ``` curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash ``` I re-build my environment every night to pull the latest and greatest. I don't have `go` installed (and don't really want to install go just for the sake of pulling this down). I just double-checked and it doesn't work for me. 🤔 (Something Codespaces is meant to solve haha) You are welcome to pull my codespace and test it out, but it isn't working for me 👀
Author
Owner

@beeequeue commented on GitHub (Jan 31, 2022):

From what I can tell from reading the install script it downloads binaries from the releases, but the changes have not been released yet, hence having to install from master

For me personally installing go just to build tools from source code has been worth it instead of downloading binaries and setting that up, despite not actually developing anything in go. But if you're using codespaces I can see why that would be less desirable

<!-- gh-comment-id:1025728737 --> @beeequeue commented on GitHub (Jan 31, 2022): From what I can tell from reading the install script it downloads binaries from the releases, but the changes have not been released yet, hence having to install from master For me personally installing go just to build tools from source code has been worth it instead of downloading binaries and setting that up, despite not actually developing anything in go. But if you're using codespaces I can see why that would be less desirable
Author
Owner

@NickLiffen commented on GitHub (Jan 31, 2022):

But if you're using codespaces I can see why that would be less desirable

100%! If I was on my local machine I would so install Go and get this done, but it's more overhead on my system having to install Go when it actually isn't needed. Local machine 100% I would install from Go, but as no other Go is indeed I would rather not if possible ❤️

but the changes have not been released yet

Ah okay this explains it 😄 Do we know when the changes may get released? 👀

<!-- gh-comment-id:1025762405 --> @NickLiffen commented on GitHub (Jan 31, 2022): > But if you're using codespaces I can see why that would be less desirable 100%! If I was on my local machine I would so install Go and get this done, but it's more _overhead_ on my system having to install Go when it actually isn't needed. Local machine 100% I would install from Go, but as no other Go is indeed I would rather not if possible ❤️ > but the changes have not been released yet Ah okay this explains it 😄 Do we know when the changes may get released? 👀
Author
Owner

@catthehacker commented on GitHub (Jan 31, 2022):

You can get latest build from https://github.com/nektos/act/actions/runs/1773288141

<!-- gh-comment-id:1025878502 --> @catthehacker commented on GitHub (Jan 31, 2022): You can get latest build from https://github.com/nektos/act/actions/runs/1773288141
Author
Owner

@NickLiffen commented on GitHub (Feb 1, 2022):

Hey @catthehacker, correct, but that doesn't work with this script.

https://github.com/nektos/act/blob/master/install.sh

It would be great if it could be generally available :)

<!-- gh-comment-id:1026845158 --> @NickLiffen commented on GitHub (Feb 1, 2022): Hey @catthehacker, correct, but that doesn't work with this script. https://github.com/nektos/act/blob/master/install.sh It would be great if it could be generally available :)
Author
Owner

@BorzdeG commented on GitHub (Feb 4, 2022):

It is, but most likely you are using v0.2.25 which doesn't have that change

@catthehacker This is the latest version available through homebrew and is listed as release in the repository.

<!-- gh-comment-id:1030320132 --> @BorzdeG commented on GitHub (Feb 4, 2022): > It is, but most likely you are using v0.2.25 which doesn't have that change @catthehacker This is the latest version available through homebrew and is listed as release in the repository.
Author
Owner

@catthehacker commented on GitHub (Feb 4, 2022):

It is, but most likely you are using v0.2.25 which doesn't have that change

@catthehacker This is the latest version available through homebrew and is listed as release in the repository.

That is correct, though I don't understand what's your point?
Not everything in master branch is released instantly as a new version
We even have instructions added about how to install latest commit with homebrew
https://github.com/nektos/act#homebrew-linuxmacos

<!-- gh-comment-id:1030325145 --> @catthehacker commented on GitHub (Feb 4, 2022): > > It is, but most likely you are using v0.2.25 which doesn't have that change > > @catthehacker This is the latest version available through homebrew and is listed as release in the repository. That is correct, though I don't understand what's your point? Not everything in `master` branch is released instantly as a new version We even have instructions added about how to install latest commit with homebrew https://github.com/nektos/act#homebrew-linuxmacos
Author
Owner

@BorzdeG commented on GitHub (Feb 4, 2022):

You wrote that in version 0.2.25 there is no node16 support yet. What version is it in?

Act latest release - 0.2.25 : https://github.com/nektos/act/releases/latest

Here is the brew output:

➜ brew upgrade
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated Homebrew from 423f34dee to 82550edf6.
Updated 3 taps (homebrew/cask-versions, homebrew/core and homebrew/cask).
==> Updated Formulae
Updated 36 formulae.
==> Updated Casks
Updated 37 casks.


➜ brew info act
act: stable 0.2.25 (bottled), HEAD
Run your GitHub Actions locally 🚀
https://github.com/nektos/act
/usr/local/Cellar/act/0.2.25 (5 files, 21.1MB) *
  Poured from bottle on 2021-11-26 at 11:20:11
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/act.rb
<!-- gh-comment-id:1030328712 --> @BorzdeG commented on GitHub (Feb 4, 2022): You wrote that in version 0.2.25 there is no node16 support yet. What version is it in? Act latest release - 0.2.25 : https://github.com/nektos/act/releases/latest Here is the brew output: ``` ➜ brew upgrade Running `brew update --preinstall`... ==> Auto-updated Homebrew! Updated Homebrew from 423f34dee to 82550edf6. Updated 3 taps (homebrew/cask-versions, homebrew/core and homebrew/cask). ==> Updated Formulae Updated 36 formulae. ==> Updated Casks Updated 37 casks. ➜ brew info act act: stable 0.2.25 (bottled), HEAD Run your GitHub Actions locally 🚀 https://github.com/nektos/act /usr/local/Cellar/act/0.2.25 (5 files, 21.1MB) * Poured from bottle on 2021-11-26 at 11:20:11 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/act.rb ```
Author
Owner

@catthehacker commented on GitHub (Feb 4, 2022):

What version is it in?

None, there is no version released yet with that change

<!-- gh-comment-id:1030329630 --> @catthehacker commented on GitHub (Feb 4, 2022): > What version is it in? None, there is no version released yet with that change
Author
Owner

@BorzdeG commented on GitHub (Feb 4, 2022):

And when is the release planned?

<!-- gh-comment-id:1030330516 --> @BorzdeG commented on GitHub (Feb 4, 2022): And when is the release planned?
Author
Owner

@calvinchengx commented on GitHub (Mar 5, 2022):

@BorzdeG

use brew install act --HEAD

<!-- gh-comment-id:1059694953 --> @calvinchengx commented on GitHub (Mar 5, 2022): @BorzdeG use `brew install act --HEAD`
Author
Owner

@catthehacker commented on GitHub (Mar 22, 2022):

And when is the release planned?

https://github.com/nektos/act/releases/tag/v0.2.26

<!-- gh-comment-id:1075725088 --> @catthehacker commented on GitHub (Mar 22, 2022): > And when is the release planned? https://github.com/nektos/act/releases/tag/v0.2.26
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#539
No description provided.