-
Notifications
You must be signed in to change notification settings - Fork 3k
47 lines (42 loc) · 1001 Bytes
/
ci_main.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
name: CI
on:
pull_request:
types: ['opened', 'reopened', 'synchronize']
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['16', '18']
name: Node ${{ matrix.node }} build
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: npm
- name: install
run: |
npm install -g npm@latest
npm ci
- name: lint
run: npm run lint
- name: build
run: npm run build:package
- name: test
run: npm test
- name: dtslint
run: npm run dtslint
- name: import
if: ${{ matrix.node == '18' }}
run: npm run test:import
- name: import
if: ${{ matrix.node == '16' || matrix.node == '18' }}
run: npm run test:esm
- name: docs
run: |
cd docs_app
npm run setup
npm run build