Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/compatibility.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: nodejs Compatibility

on:
push:
branches:
- "main"
- "3.0"
pull_request:
branches:
- "main"
- "3.0"

jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [16.x, 20.x]
Comment thread
qevolg marked this conversation as resolved.
steps:
- name: Get TDengine
run: wget https://github.com/taosdata/TDengine/releases/download/ver-3.3.6.0/TDengine-server-3.3.6.0-Linux-x64.tar.gz

- name: Install TDengine
run: |
tar -zxf TDengine-server-3.3.6.0-Linux-x64.tar.gz
rm -rf TDengine-server-3.3.6.0-Linux-x64.tar.gz
cd TDengine-server-3.3.6.0
sudo ./install.sh -e no

- name: Start TDengine
run: |
nohup sudo taosd &
nohup sudo taosadapter &

Comment thread
qevolg marked this conversation as resolved.
- name: Checkout
uses: actions/checkout@v4
with:
path: "nodejs-connector"
clean: true
set-safe-directory: true

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Run tests
working-directory: nodejs-connector/nodejs
env:
TDENGINE_CLOUD_URL: ${{ secrets.TDENGINE_CLOUD_URL }}
TDENGINE_CLOUD_TOKEN: ${{ secrets.TDENGINE_CLOUD_TOKEN }}
Comment thread
qevolg marked this conversation as resolved.
run: |
npm install
npm list
npm run example
npm run test
2 changes: 1 addition & 1 deletion nodejs/test/bulkPulling/tmq.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ describe("TDWebSocket.Tmq()", () => {
await consumer.subscribe(topics);
} catch (e: any) {
console.log(e);
expect(e.code).toBe(280);
expect([280, 65535]).toContain(e.code);
} finally {
if (consumer) {
await consumer.close();
Expand Down