Go to file
2019-07-25 21:00:00 -04:00
__tests__ Add ci and fix linux tests (#8) 2019-06-17 09:32:51 -04:00
.github Update workflow.yml (#16) 2019-07-23 11:52:39 -04:00
docs Use husky to manage deps (#7) 2019-06-17 09:32:08 -04:00
externals Add installer 2019-06-05 15:17:00 -04:00
lib Add eslint problem matchers (#10) 2019-06-18 10:50:43 -04:00
node_modules cp args 2019-06-26 16:32:26 -06:00
src Add eslint problem matchers (#10) 2019-06-18 10:50:43 -04:00
toolkit Consume different tool-cache 2019-06-26 16:52:05 -04:00
.gitignore Use husky to manage deps (#7) 2019-06-17 09:32:08 -04:00
.prettierrc.json Add installer 2019-06-05 15:17:00 -04:00
action.yml Update action.yml 2019-07-09 12:41:09 -04:00
jest.config.js Add installer 2019-06-05 15:17:00 -04:00
LICENSE init 2019-05-30 23:10:12 -04:00
package-lock.json Consume different tool-cache 2019-06-26 16:52:05 -04:00
package.json Fix husky 2019-07-12 11:01:41 -04:00
README.md changing actions to steps 2019-07-25 21:00:00 -04:00
tsconfig.json Add installer 2019-06-05 15:17:00 -04:00

setup-node

This action sets by node environment for use in actions by:

  • optionally downloading and caching a version of node - npm by version spec and add to PATH
  • registering problem matchers for error output

Usage

See action.yml

Basic:

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

Matrix Testing:

jobs:
  build:
    strategy:
      matrix:
        node: [ 10, 8 ]
    name: Node ${{ matrix.node }} sample
    steps:
      - uses: actions/checkout@master
      - name: Setup node
        uses: actions/setup-node@master
        with:
          version: ${{ matrix.node }}
      - run: npm install
      - run: npm test

License

The scripts and documentation in this project are released under the MIT License

Contributions

Contributions are welcome! See Contributor's Guide