-
Notifications
You must be signed in to change notification settings - Fork 654
57 lines (47 loc) · 1.3 KB
/
build-and-test.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
50
51
52
53
54
55
56
57
name: Build and test
on: [pull_request]
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [14.x, 18.x]
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: use node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-${{ matrix.node-version }}-
${{ runner.os }}-npm-
- name: install
run: |
npm ci
npm run plugins:ci
- name: static checks
run: |
npm i --no-save eslint
npm run lint
- name: build
run: |
npm run build
npm run plugins:build
- name: test
run: |
npm run test:smoke
npm run test
npm run test:one
npm run test:two
npm run test:three
npm run testb
npm run test:plugins
# npm run perf
# npm run test:types
# npm run test:stress