go/.github/workflows/workflow.yml

40 lines
771 B
YAML
Raw Normal View History

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