2019-10-02 12:18:38 +00:00
|
|
|
name: toolkit-unit-tests
|
2019-10-03 16:45:11 +00:00
|
|
|
on:
|
|
|
|
push:
|
2019-10-03 17:07:22 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
2019-07-11 20:12:50 +00:00
|
|
|
jobs:
|
|
|
|
Ubuntu:
|
|
|
|
name: Run Ubuntu
|
|
|
|
runs-on: ubuntu-latest
|
2019-07-26 03:00:31 +00:00
|
|
|
steps:
|
2019-07-26 03:08:57 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@master
|
|
|
|
|
2019-07-11 20:12:50 +00:00
|
|
|
- name: Set Node.js 10.x
|
2019-07-26 03:08:57 +00:00
|
|
|
uses: actions/setup-node@master
|
2019-07-11 20:12:50 +00:00
|
|
|
with:
|
|
|
|
version: 10.x
|
|
|
|
|
|
|
|
- name: npm install
|
|
|
|
run: npm install
|
|
|
|
|
|
|
|
- name: Bootstrap
|
|
|
|
run: npm run bootstrap
|
|
|
|
|
|
|
|
- name: Compile
|
|
|
|
run: npm run build
|
|
|
|
|
|
|
|
- name: npm test
|
|
|
|
run: npm test
|
|
|
|
|
|
|
|
- name: Lint
|
|
|
|
run: npm run lint
|
|
|
|
|
|
|
|
- name: Format
|
|
|
|
run: npm run format-check
|
2019-08-13 16:39:01 +00:00
|
|
|
macOS:
|
|
|
|
name: Run macOS
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@master
|
|
|
|
|
|
|
|
- name: Set Node.js 10.x
|
|
|
|
uses: actions/setup-node@master
|
|
|
|
with:
|
|
|
|
version: 10.x
|
|
|
|
|
|
|
|
- name: npm install
|
|
|
|
run: npm install
|
|
|
|
|
|
|
|
- name: Bootstrap
|
|
|
|
run: npm run bootstrap
|
|
|
|
|
|
|
|
- name: Compile
|
|
|
|
run: npm run build
|
|
|
|
|
|
|
|
- name: npm test
|
|
|
|
run: npm test
|
2019-07-11 20:12:50 +00:00
|
|
|
Windows:
|
|
|
|
name: Run Windows
|
|
|
|
runs-on: windows-latest
|
2019-07-26 03:00:31 +00:00
|
|
|
steps:
|
2019-07-26 03:08:57 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@master
|
|
|
|
|
2019-07-11 20:12:50 +00:00
|
|
|
- name: Set Node.js 10.x
|
2019-07-26 03:08:57 +00:00
|
|
|
uses: actions/setup-node@master
|
2019-07-11 20:12:50 +00:00
|
|
|
with:
|
|
|
|
version: 10.x
|
|
|
|
|
|
|
|
- name: npm install
|
|
|
|
run: npm install
|
|
|
|
|
|
|
|
- name: Bootstrap
|
|
|
|
run: npm run bootstrap
|
|
|
|
|
|
|
|
- name: Compile
|
|
|
|
run: npm run build
|
|
|
|
|
|
|
|
# TODO: This currently ignores exec due to issues with Node and spawning on Windows, which I think is exacerbated by Jest.
|
|
|
|
# It doesn't seem to affect behavior in actions themselves, just when testing with Jest.
|
|
|
|
# See other similar issues here: https://github.com/nodejs/node/issues/25484
|
|
|
|
- name: npm test
|
|
|
|
run: npm run test-ci
|