-
Notifications
You must be signed in to change notification settings - Fork 5
78 lines (65 loc) · 1.73 KB
/
push.yaml
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
68
69
70
71
72
73
74
75
76
77
78
# Triggered by pull request or push to develop branch
# Test TypeScript rest connector.
name: nodejs Release
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [14.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: 'main'
submodules: 'recursive'
- name: install TDengine
run: |
cd TDengine
mkdir debug
cd debug
cmake .. -DBUILD_HTTP=false -DBUILD_JDBC=false -DBUILD_TOOLS=false -DBUILD_TEST=off -DBUILD_DEPENDENCY_TESTS=false
make -j 4
sudo make install
which taosd
which taosadapter
- name: start taosd
run: |
nohup sudo taosd &
- name: start taosadapter
run: |
nohup sudo taosadapter &
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: test nodejs websocket
working-directory: nodejs
run: |
ls -al
npm install
npm list
npm run example
npm run test
ls -al
echo ${{ env.TEST_ENV_VAR }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false
env:
token: ${{ secrets.CODECOV_TOKEN }}