1
0
Fork 0
toolkit/.github/workflows/unit-tests.yml

52 lines
850 B
YAML
Raw Permalink Normal View History

name: toolkit-unit-tests
on:
2019-10-03 16:45:11 +00:00
push:
branches:
- main
2019-10-03 17:07:22 +00:00
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
build:
name: Build
strategy:
matrix:
2020-05-27 14:32:54 +00:00
runs-on: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
runs-on: ${{ matrix.runs-on }}
2019-07-26 03:00:31 +00:00
steps:
2019-07-26 03:08:57 +00:00
- name: Checkout
2023-01-03 15:59:01 +00:00
uses: actions/checkout@v3
2019-07-26 03:08:57 +00:00
2022-12-14 00:19:05 +00:00
- name: Set Node.js 16.x
2023-01-03 15:38:50 +00:00
uses: actions/setup-node@v3
with:
2022-12-14 00:19:05 +00:00
node-version: 16.x
- name: npm install
run: npm install
- name: Bootstrap
run: npm run bootstrap
- name: Compile
run: npm run build
- name: npm test
2022-12-20 15:32:59 +00:00
run: npm test -- --runInBand
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Lint
run: npm run lint
- name: Format
run: npm run format-check