2020-05-19 21:25:54 +08:00
|
|
|
name: build-test
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- releases/*
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ${{ matrix.operating-system }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-06-30 02:56:37 +08:00
|
|
|
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
2020-05-19 21:25:54 +08:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup node 12
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 12.x
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run build
|
|
|
|
- run: npm run format-check
|
|
|
|
- run: npm test
|
|
|
|
- name: Verify no unstaged changes
|
|
|
|
if: runner.os != 'windows'
|
|
|
|
run: __tests__/verify-no-unstaged-changes.sh
|