2019-10-01 22:08:40 +02:00
|
|
|
name: CI
|
|
|
|
|
2020-06-30 21:55:14 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2020-08-14 19:23:08 +02:00
|
|
|
- 5.x
|
2020-08-27 21:23:56 +02:00
|
|
|
- "changeset-release/5.x"
|
2020-06-30 21:55:14 +02:00
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- .github/workflows/ci.yml
|
2020-08-27 21:23:56 +02:00
|
|
|
- "packages/**"
|
|
|
|
- "jest/**"
|
|
|
|
- "package.json"
|
|
|
|
- "pnpm-workspace.yaml"
|
2019-10-01 22:08:40 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci:
|
2020-08-31 22:21:38 +02:00
|
|
|
name: ${{ matrix.os }} / Node ${{ matrix.node_version }}
|
2019-10-01 22:08:40 +02:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2020-08-31 22:21:38 +02:00
|
|
|
os: [ubuntu-latest, windows-latest]
|
2020-08-11 07:21:51 +02:00
|
|
|
node_version: [10, 12, 14]
|
2019-10-01 22:08:40 +02:00
|
|
|
|
2020-08-31 22:21:38 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
2019-10-01 22:08:40 +02:00
|
|
|
|
|
|
|
steps:
|
2020-08-27 21:23:56 +02:00
|
|
|
- uses: actions/checkout@v2.3.1
|
|
|
|
- name: Use Node ${{ matrix.node_version }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node_version: ${{ matrix.node_version }}
|
|
|
|
- name: Install pnpm
|
|
|
|
run: npm i -g pnpm
|
|
|
|
- name: Install
|
|
|
|
run: pnpm recursive install
|
|
|
|
- name: Lint
|
|
|
|
run: pnpm lint
|
|
|
|
- name: Clean
|
|
|
|
run: pnpm clean
|
|
|
|
- name: Build
|
|
|
|
run: pnpm build
|
|
|
|
- name: Test
|
|
|
|
run: pnpm test
|