2020-05-19 13:25:54 +00:00
|
|
|
name: build-test
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
push:
|
|
|
|
branches:
|
2020-07-22 12:12:24 +00:00
|
|
|
- main
|
2020-05-19 13:25:54 +00:00
|
|
|
- releases/*
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-01-20 19:15:22 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
2020-05-19 13:25:54 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-01-20 19:15:22 +00:00
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
2020-05-19 13:25:54 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup node 12
|
2020-12-15 10:38:55 +00:00
|
|
|
uses: actions/setup-node@v2
|
2020-05-19 13:25:54 +00:00
|
|
|
with:
|
|
|
|
node-version: 12.x
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build
|
|
|
|
- run: npm run format-check
|
|
|
|
- run: npm test
|
2021-06-16 06:52:44 +00:00
|
|
|
- run: git add .
|
2020-05-19 13:25:54 +00:00
|
|
|
- name: Verify no unstaged changes
|
|
|
|
if: runner.os != 'windows'
|
|
|
|
run: __tests__/verify-no-unstaged-changes.sh
|