File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : nodejs Compatibility
2+
3+ on :
4+ push :
5+ branches :
6+ - " main"
7+ - " 3.0"
8+ pull_request :
9+ branches :
10+ - " main"
11+ - " 3.0"
12+
13+ jobs :
14+ build :
15+ runs-on : ubuntu-22.04
16+ strategy :
17+ matrix :
18+ node-version : [16.x, 20.x]
19+ steps :
20+ - name : Get TDengine
21+ run : wget https://github.com/taosdata/TDengine/releases/download/ver-3.3.6.0/TDengine-server-3.3.6.0-Linux-x64.tar.gz
22+
23+ - name : Install TDengine
24+ run : |
25+ tar -zxf TDengine-server-3.3.6.0-Linux-x64.tar.gz
26+ rm -rf TDengine-server-3.3.6.0-Linux-x64.tar.gz
27+ cd TDengine-server-3.3.6.0
28+ sudo ./install.sh -e no
29+
30+ - name : Start TDengine
31+ run : |
32+ taosd &
33+ taosadapter &
34+
35+ - name : Checkout
36+ uses : actions/checkout@v4
37+ with :
38+ path : " nodejs-connector"
39+ clean : true
40+ set-safe-directory : true
41+
42+ - name : Use Node.js ${{ matrix.node-version }}
43+ uses : actions/setup-node@v3
44+ with :
45+ node-version : ${{ matrix.node-version }}
46+
47+ - name : Setup tmate session
48+ uses : mxschmitt/action-tmate@v3
49+ timeout-minutes : 300
50+
51+ - name : Run tests
52+ working-directory : nodejs-connector/nodejs
53+ env :
54+ TDENGINE_CLOUD_URL : ${{ secrets.TDENGINE_CLOUD_URL }}
55+ TDENGINE_CLOUD_TOKEN : ${{ secrets.TDENGINE_CLOUD_TOKEN }}
56+ run : |
57+ npm install
58+ npm list
59+ npm run example
60+ npm run test
You can’t perform that action at this time.
0 commit comments