-
Notifications
You must be signed in to change notification settings - Fork 2.7k
49 lines (46 loc) · 1.22 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Node CI
env:
NODE_OPTIONS: --max-old-space-size=6144
on:
push:
paths-ignore:
- '.github/**/*.md'
- 'examples/**'
- 'docs/**'
- '*.md'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [12.x, 14.x]
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
registry-url: 'https://registry.yarnpkg.com'
- name: restore lerna
id: cache
uses: actions/cache@v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: install
if: steps.cache.outputs.cache-hit != 'true'
run: yarn --ignore-engines --frozen-lockfile
- run: yarn build
- run: yarn run tsc --noEmit
- run: yarn test --detectOpenHandles --maxWorkers=1 --forceExit
env:
CI: true
HEADLESS: false
PROGRESS: none
NODE_ENV: test