2020-02-09 05:21:39 +00:00
|
|
|
name: build-test
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
2019-07-11 20:16:54 +00:00
|
|
|
jobs:
|
|
|
|
run:
|
|
|
|
name: Run
|
|
|
|
runs-on: ${{ matrix.operating-system }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
operating-system: [ubuntu-latest, windows-latest]
|
2019-07-26 02:59:14 +00:00
|
|
|
steps:
|
2019-07-23 17:24:08 +00:00
|
|
|
- name: Checkout
|
2020-02-09 05:21:39 +00:00
|
|
|
uses: actions/checkout@v2
|
2019-07-23 17:24:08 +00:00
|
|
|
|
2020-02-09 05:21:39 +00:00
|
|
|
- name: Setup node 12
|
|
|
|
uses: actions/setup-node@v1
|
2019-07-11 20:16:54 +00:00
|
|
|
with:
|
2020-02-09 05:21:39 +00:00
|
|
|
node-version: 12
|
2019-07-11 20:16:54 +00:00
|
|
|
|
|
|
|
- name: npm install
|
|
|
|
run: npm install
|
|
|
|
|
|
|
|
- name: Lint
|
|
|
|
run: npm run format-check
|
|
|
|
|
|
|
|
- name: npm test
|
|
|
|
run: npm test
|
2020-02-09 19:41:37 +00:00
|
|
|
|
|
|
|
- name: audit packages
|
2020-03-26 18:00:03 +00:00
|
|
|
run: npm audit --audit-level=high
|
2020-02-09 19:41:37 +00:00
|
|
|
if: matrix.operating-system == 'ubuntu-latest'
|