2019-09-11 18:39:31 +07:00
|
|
|
name: CI
|
|
|
|
|
2019-10-03 19:19:13 +07:00
|
|
|
on: [push, pull_request]
|
2019-09-11 18:39:31 +07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_test_lint:
|
|
|
|
name: Node ${{ matrix.node_version }} and ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2019-09-12 03:35:29 +07:00
|
|
|
node_version: [10, 12]
|
2019-09-11 18:39:31 +07:00
|
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Use Node.js ${{ matrix.node_version }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
version: ${{ matrix.node_version }}
|
|
|
|
- name: Install
|
|
|
|
run: yarn install --frozen-lockfile
|
|
|
|
- name: Build
|
|
|
|
run: yarn build
|
|
|
|
- name: Lint
|
|
|
|
run: yarn lint
|