Skip to content

Node 16 support on self-hosted runners #142

@maduq1

Description

@maduq1

TL;DR

When trying to use the action in a self-hosted runner, we get the following:

Error: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter ''using: node16' is not supported, use 'docker' or 'node12' instead.')

The self-hosted runner is a Debian machine using node 16.

Expected behavior

The error should not happen, just run the whole workflow.

Observed behavior

No response

Action YAML

name: Deploy

on:
  push:
    branches:
      - master

jobs:
    deploy-to-test:
    runs-on: [self-hosted, test-environment]

    needs: [version-bump]

    env:
      SLS_ENV: test

    steps:
     - name: Checkout repo
        uses: actions/checkout@v2
        with:
          ref: ${{ github.ref }}
      - name: Use Node.js 16
        uses: actions/setup-node@v2
        with:
          node-version: "16"
      - name: Install dependencies
        run: |
          npm ci
          cd db
          npm ci
          cd ..
      - name: Auth in GCloud
        uses: google-github-actions/auth@v0
        with:
          credentials_json: ${{ secrets.KEY }}
      - name: Set up Cloud SDK
        uses: google-github-actions/setup-gcloud@v0
        with:
          project_id: ${{ secrets.PROJECT }}

Log output

Download action repository 'actions/checkout@v2'
Download action repository 'actions/setup-node@v2'
Download action repository 'google-github-actions/auth@v0'
Download action repository 'google-github-actions/setup-gcloud@master'
Download action repository 'rtCamp/action-slack-notify@v2'
Error: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter ''using: node16' is not supported, use 'docker' or 'node12' instead.')
   at GitHub.Runner.Worker.ActionManifestManager.ConvertRuns(IExecutionContext executionContext, TemplateContext templateContext, TemplateToken inputsToken, String fileRelativePath, MappingToken outputs)
   at GitHub.Runner.Worker.ActionManifestManager.Load(IExecutionContext executionContext, String manifestFile)
Error: Fail to load google-github-actions/auth/v0/action.yml

Additional information

When we remove the specific auth step, everything works just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions