-
Notifications
You must be signed in to change notification settings - Fork 7
67 lines (55 loc) · 1.45 KB
/
rest3.0_pull_push.yaml
File metadata and controls
67 lines (55 loc) · 1.45 KB
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
66
67
# Triggered by pull request or push to develop branch
# Test TypeScript rest connector.
name: rest 3.0 on push&pull
on:
push:
branches: ['3.0']
pull_request:
branches: ['3.0']
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [12.x,16.x]
steps:
- name: Build Tools
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake
sudo apt-get install -y python3 python3-pip python-is-python3
- name: Checkout TDengine
uses: actions/checkout@v3
with:
fetch-depth: 1
repository: 'taosdata/TDengine'
path: 'TDengine'
ref: '3.0'
submodules: 'recursive'
- name: Build TDengine
run: |
cd TDengine
mkdir debug
cd debug
cmake .. -DBUILD_JDBC=false -DBUILD_TOOLS=false -DBUILD_HTTP=false
make -j
sudo make install
- name: start taosd
run: |
nohup sudo taosd &
- name: start taosadapter
run: |
nohup sudo taosadapter &
- uses: actions/checkout@v3
with:
path : "node-taos"
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: test typescript-rest
working-directory: node-taos/typescript-rest
run: |
ls -al
npm install
npm run example