2019-10-01 15:08:40 -05:00
|
|
|
name: CI
|
|
|
|
|
2020-06-30 14:55:14 -05:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- .github/workflows/ci.yml
|
|
|
|
- 'packages/**'
|
|
|
|
- 'jest/**'
|
|
|
|
- 'package.json'
|
|
|
|
- 'lerna.json'
|
2019-10-01 15:08:40 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
name: Node ${{ matrix.node_version }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2020-05-20 15:45:08 -05:00
|
|
|
node_version: [10, 12, 13, 14]
|
2019-10-01 15:08:40 -05:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2020-03-03 17:59:19 -05:00
|
|
|
- uses: actions/checkout@v2.3.1
|
2019-10-01 15:08:40 -05:00
|
|
|
- name: Use Node ${{ matrix.node_version }}
|
2020-03-03 17:59:19 -05:00
|
|
|
uses: actions/setup-node@v2.1.1
|
2019-10-01 15:08:40 -05:00
|
|
|
with:
|
2020-03-03 17:59:19 -05:00
|
|
|
node_version: ${{ matrix.node_version }}
|
2019-10-01 15:08:40 -05:00
|
|
|
- name: Install
|
2020-06-24 05:28:00 -05:00
|
|
|
run: yarn --frozen-lockfile
|
2020-03-03 17:59:19 -05:00
|
|
|
- name: Bootstrap Lerna
|
|
|
|
run: yarn bootstrap
|
2019-10-01 15:08:40 -05:00
|
|
|
- name: Lint
|
|
|
|
run: yarn lint
|
2020-03-03 17:59:19 -05:00
|
|
|
- name: Clean
|
|
|
|
run: yarn clean
|
|
|
|
- name: Build
|
|
|
|
run: yarn build
|
2019-10-01 15:08:40 -05:00
|
|
|
- name: Test
|
|
|
|
run: yarn test
|