Comments (2)
Thanks for opening this issue! This is definitely a bug conceptually, sorry about that!
I think the solution here would have to be to do something like:
- Use the
node-version
specified as part ofvolta install node@<the version>
to change the default / global node to the specified version (this is what we do now) - IFF the project has a top level
package.json
we runvolta pin node@<the version>
(this is the fix for the issue you reported)
from action.
That makes sense to me! I wasn't sure if the node-version
setting was only supposed to be used to pre-download a particular Node version, but it honestly doesn't make a whole lot of sense to download it if it isn't used!
In the meantime, it should be possible to solve it like this I think, right?
name: Verify
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [6.7.0, 12.16.1]
steps:
- uses: actions/checkout@v1
- uses: volta-cli/action@v1
- name: Switch Node version
run: volta pin node@${{ matrix.node-version }}
- run: yarn install
- run: yarn test
I no longer actually need to do this on the project I originally tried this on, but I would love to see this supported. I'm really loving Volta and have started using it pretty heavily!
from action.
Related Issues (20)
- Using volta-cli/action on GitHub Enterprise Server causes frequent rate-limits with no fallback HOT 1
- Prepare for 1.1.0 Support
- Action fails to download `[email protected]` HOT 8
- Support pnpm cache
- Add support for windows platform HOT 1
- Set up eslint and tsc problem matchers? HOT 1
- Use @action/cache to cache where possible HOT 9
- Add support for choosing a volta version by "version spec" HOT 1
- Support `actions/setup-node`'s `registry-url` input HOT 2
- Pre-Packaged Actions Unable to Locate Executables HOT 6
- Support `npm-version` HOT 1
- Enhance documentation/ explain how it works HOT 13
- Frequent failures HOT 13
- Object prototype may only be an Object or null: undefined HOT 4
- Please release HOT 3
- Unexpected input(s) 'registry-url' HOT 1
- package.json in a subdirectory HOT 1
- Should be released with major `v2` tag HOT 2
- Unexpected input(s) 'scope' HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action.