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
This commit is contained in:
Danny McCormick 2019-06-17 09:32:51 -04:00 committed by GitHub
parent 075e678472
commit b9fb64b093
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 71 additions and 12 deletions

22
.github/main.workflow.yml vendored Normal file
View file

@ -0,0 +1,22 @@
on: push
jobs:
build:
runs-on:
pool: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [Linux, macOS, Windows]
actions:
- name: Set Node.js 10.x
uses: bryanmacfarlane/node-config@master
with:
version: 10.x
- name: npm install
run: npm prune --production && npm install
- name: Lint
run: npm run format-check
- name: npm test
run: npm test