2020-05-19 09:25:54 -04:00
|
|
|
name: build-test
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
2021-12-30 09:05:57 -05:00
|
|
|
- '**.md'
|
|
|
|
push:
|
2020-05-19 09:25:54 -04:00
|
|
|
branches:
|
2020-07-22 08:12:24 -04:00
|
|
|
- main
|
2020-05-19 09:25:54 -04:00
|
|
|
- releases/*
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
2021-12-30 09:05:57 -05:00
|
|
|
|
2020-05-19 09:25:54 -04:00
|
|
|
jobs:
|
|
|
|
build:
|
2021-01-20 14:15:22 -05:00
|
|
|
runs-on: ${{ matrix.os }}
|
2020-05-19 09:25:54 -04:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-01-20 14:15:22 -05:00
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
2020-05-19 09:25:54 -04:00
|
|
|
steps:
|
2022-04-01 04:13:52 -04:00
|
|
|
- uses: actions/checkout@v3
|
2022-03-31 15:14:07 -04:00
|
|
|
- name: Setup Node 16.x
|
|
|
|
uses: actions/setup-node@v3
|
2020-05-19 09:25:54 -04:00
|
|
|
with:
|
2022-02-22 03:28:24 -05:00
|
|
|
node-version: 16.x
|
2021-12-30 09:05:57 -05:00
|
|
|
cache: npm
|
2020-05-19 09:25:54 -04:00
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build
|
|
|
|
- run: npm run format-check
|
2022-03-31 15:14:07 -04:00
|
|
|
- run: npm test
|