-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (32 loc) · 999 Bytes
/
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
name: test
on: [push]
jobs:
build:
name: Test on node ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
node: [12, 14, 16]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
# The Node.js version to configure
node-version: ${{ matrix.node }}
- name: install deps
run: npm i
- name: install mpx cli
run: npm i -g @mpxjs/[email protected]
- name: test basic project
run: node __test__/test-basic.js
- name: test cross project
run: node __test__/test-cross.js
- name: test cross web project
run: node __test__/test-cross-web.js
- name: test plugin project
run: node __test__/test-plugin.js
- name: test cloud project
run: node __test__/test-cloud.js
- name: test ts project
run: node __test__/test-ts.js