Skip to content

Basic example fails #126

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

Closed
purefan opened this issue Mar 25, 2020 · 0 comments
Closed

Basic example fails #126

purefan opened this issue Mar 25, 2020 · 0 comments

Comments

@purefan
Copy link

purefan commented Mar 25, 2020

Hello,

Taking the first example ("Basic") from the Usage section in the Readme.md file fails:

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
  with:
    node-version: '10.x'
- run: npm install
- run: npm test

I am running this locally with act but I discarded it being a problem in act by running the yarn step instead of setup-node and it worked.

The actual output is this:

[CI/unit-test] Extracting content from '/tmp/act064769060' to '/actions/'
[CI/unit-test] Exec command '[node /actions/actions-setup-node@v1/dist/index.js]'
[CI/unit-test] 💬 ::debug::isExplicit:
[CI/unit-test] 💬 ::debug::explicit? false
[CI/unit-test] 💬 ::debug::evaluating 0 versions
[CI/unit-test] 💬 ::debug::match not found
[CI/unit-test] 💬 ::debug::evaluating 381 versions
[CI/unit-test] 💬 ::debug::matched: v12.16.1
[CI/unit-test] 💬 ::debug::isExplicit: 12.16.1
[CI/unit-test] 💬 ::debug::explicit? true
[CI/unit-test] 💬 ::debug::checking cache: /opt/hostedtoolcache/node/12.16.1/x64
[CI/unit-test] 💬 ::debug::not found
[CI/unit-test] ❗ ::error::Expected RUNNER_TEMP to be defined
[CI/unit-test] ❌ Failure - actions/setup-node@v1
DEBU[0010] exit with FAILURE: 1
DEBU[0010] exit with FAILURE: 1
DEBU[0010] exit with FAILURE: 1
Error: exit with FAILURE: 1

This line of code seems relevant

My jobs section looks like this:

jobs:
  unittest:
    runs-on: ubuntu-18.04
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v1
      with:
        node-version: '12.x'
    - run: npm install
    - run: npm test
@purefan purefan closed this as completed Mar 26, 2020
deining pushed a commit to deining/setup-node that referenced this issue Nov 9, 2023
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

No branches or pull requests

1 participant