-
Notifications
You must be signed in to change notification settings - Fork 8
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
Not working locally with act #32
Comments
I haven’t used act before so I’m not sure how to solve this. We use NPM because GitHub’s runners have node by default, and therefore npm; if act doesn’t have that, then you’ll have to install it somehow |
I have no idea why, but this works: name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: latest
cache: 'npm'
- run: npm install -g bats
- run: bats -v The only difference is the missing |
I can't remember why the |
Yeah, 32fa32c adds the code block |
I encountered the same issue. I was trying to be a good citizen and run github action with @klarkc Did you find something out regarding | Fetching psa
| [command]/usr/bin/sudo npm install -g [email protected]
| sudo: npm: command not found
[Publish Package/build] ❗ ::error::The process '/usr/bin/sudo' failed with exit code 1
[Publish Package/build] ❌ Failure - Main Setup PureScript
[Publish Package/build] ⚙ ::add-path:: /opt/hostedtoolcache/purs/0.15.7/x64
[Publish Package/build] ⚙ ::add-path:: /opt/hostedtoolcache/spago/0.20.9/x64
[Publish Package/build] exitcode '1': failure
[Publish Package/build] ⭐ Run Post Install pnpm
[Publish Package/build] 🐳 docker exec cmd=[node /var/run/act/actions/[email protected]/dist/index.js] user= workdir=
| Pruning is unnecessary.
[Publish Package/build] ✅ Success - Post Install pnpm
[Publish Package/build] 🏁 Job failed
Error: Job 'build' failed |
Nop. I'm guessing here, but I believe the origin of the bug is npm not being installed by default. Even so, the action should not rely in this npm. Because people normally use |
I am trying to simulate the workflow locally with act, but I am getting this error:
I tried the default config, and even adding
before
uses: purescript-contrib/setup-purescript@main
it still happens.The text was updated successfully, but these errors were encountered: