Skip to content

Commit c62180f

Browse files
committed
feat: add environment variables for TDengine test credentials in workflows
1 parent 9b1be98 commit c62180f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,12 @@ jobs:
7070

7171
- name: Test nodejs websocket
7272
working-directory: nodejs-connector/nodejs
73+
env:
74+
TDENGINE_CLOUD_URL: ${{ secrets.TDENGINE_CLOUD_URL }}
75+
TDENGINE_CLOUD_TOKEN: ${{ secrets.TDENGINE_CLOUD_TOKEN }}
76+
TDENGINE_TEST_USERNAME: ${{ secrets.TDENGINE_TEST_USERNAME }}
77+
TDENGINE_TEST_PASSWORD: ${{ secrets.TDENGINE_TEST_PASSWORD }}
7378
run: |
74-
export TDENGINE_CLOUD_URL=${{ secrets.TDENGINE_CLOUD_URL }}
75-
export TDENGINE_CLOUD_TOKEN=${{ secrets.TDENGINE_CLOUD_TOKEN }}
7679
ls -al
7780
npm install
7881
npm list

.github/workflows/compatibility.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
env:
5050
TDENGINE_CLOUD_URL: ${{ secrets.TDENGINE_CLOUD_URL }}
5151
TDENGINE_CLOUD_TOKEN: ${{ secrets.TDENGINE_CLOUD_TOKEN }}
52+
TDENGINE_TEST_USERNAME: ${{ secrets.TDENGINE_TEST_USERNAME }}
53+
TDENGINE_TEST_PASSWORD: ${{ secrets.TDENGINE_TEST_PASSWORD }}
5254
run: |
5355
npm install
5456
npm list

0 commit comments

Comments
 (0)