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