Danny McCormick b9fb64b093
Add ci and fix linux tests (#8)
* Add actions ci

* Add format-check

* Test doesnt depend on build

* Fix linux tests

* Fix other linux test

* Use azp for cross-platform support for now

* Dogfood ci

* Update main.workflow.yml

* Update main.workflow.yml

* Update main.workflow.yml

* Update main.workflow.yml

* Update main.workflow.yml

* Update main.workflow.yml

* back to runs-on

* Try lowercase

* Back to upper

* Pool under runs-on

* Switch from install to ci

* Make sure we have right version of node

* Indenting issues

* Install instead of ci to avoid reinstalling tarballs

* Update main.workflow.yml

* Update main.workflow.yml

* Try ci again

* Update main.workflow.yml

* Update main.workflow.yml

* Update main.workflow.yml

* Remove logging step

* Try pruning first so that devDeps definitely aren't installed

* Clean tests

* Spacing

* Randomize folder for concurrent builds

* Dont fail on not being able to unlink

* Dont fail on not being able to unlink
2019-06-17 09:32:51 -04:00
2019-06-17 09:32:51 -04:00
2019-06-17 09:32:51 -04:00
2019-06-17 09:32:08 -04:00
2019-06-05 15:17:00 -04:00
2019-06-05 15:17:00 -04:00
2019-06-05 15:17:00 -04:00
2019-06-05 15:17:00 -04:00
2019-06-05 15:17:00 -04:00
2019-06-17 09:32:08 -04:00
2019-06-05 15:17:00 -04:00
2019-06-05 15:17:00 -04:00
2019-06-05 15:17:00 -04:00
2019-05-30 23:10:12 -04:00
2019-06-17 09:32:51 -04:00
2019-06-05 15:17:00 -04:00

@actions/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
  • TODO: registering problem matchers for error output
  • TODO: configuring authentication for npm packages
  • TODO: configuring proxy if the runner is configured to use a proxy (coming with private runners)

Usage

See action.yml

Basic:

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

Matrix Testing:

jobs:
  build:
    strategy:
      matrix:
        node: [ 10, 8 ]
    name: Node ${{ matrix.node }} sample
    actions:
      - name: Setup node
        uses: actions/setup-node@latest
        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

Description
Set up your GitHub Actions workflow with a specific version of node.js
Readme MIT 122 MiB
Languages
TypeScript 99%
Shell 0.9%
JavaScript 0.1%