-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (64 loc) · 1.54 KB
/
nodejs.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
58
59
60
61
62
63
64
65
name: nodejs frequent usage
on: push
jobs:
root:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-node@main
with:
check-latest: true
node-version: lts/*
- uses: actions/checkout@main
- run: npm install
- run: npm test
extensions:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
extension: [CSV, light,logger, main, crypto]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ${{ matrix.extension }}
steps:
- uses: actions/setup-node@main
with:
check-latest: true
node-version: lts/*
- uses: actions/checkout@main
- run: npm install
- run: npm test
pm2:
defaults:
run:
working-directory: pm2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14.x
- run: npm install pm2@latest -g;
- run: npm install;
- run: ./test/CLI/test.sh
client-server:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
dir: [ grpc, websocket ]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ${{ matrix.dir }}
steps:
- uses: actions/setup-node@main
with:
check-latest: true
node-version: lts/*
- uses: actions/checkout@main
- run: npm install
- run: npm start
- run: npm test