-
Notifications
You must be signed in to change notification settings - Fork 0
97 lines (81 loc) · 3.09 KB
/
serverless-driver-connect-test.yml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Serverless Driver Connect Test
on:
schedule:
- cron: "0/10 * * * *" # every 10 minutes
workflow_dispatch:
jobs:
us-east-1:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: connect cluster us-east-1
run: |
cd example_code/serverless-driver
npm install @tidbcloud/serverless
echo "nADWvyBQFXhgZxw.root:[email protected]"
export DATABASE_URL=mysql://nADWvyBQFXhgZxw.root:${{ secrets.CLUSTER_PSWD_US_EAST_1 }}@gateway01.us-east-1.prod.aws.tidbcloud.com/test
node ConnectTest.js
us-west-2:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: connect cluster us-west-2
run: |
cd example_code/serverless-driver
npm install @tidbcloud/serverless
echo "j24i5KNxRJpvEj7.root:[email protected]"
export DATABASE_URL=mysql://j24i5KNxRJpvEj7.root:${{ secrets.CLUSTER_PSWD_US_WEST_2 }}@gateway01.us-west-2.prod.aws.tidbcloud.com/test
node ConnectTest.js
ap-northeast-1:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: connect cluster ap-northeast-1
run: |
cd example_code/serverless-driver
npm install @tidbcloud/serverless
echo "Nv7fzTqtB8V698S.root:[email protected]"
export DATABASE_URL=mysql://Nv7fzTqtB8V698S.root:${{ secrets.CLUSTER_PSWD_AP_NORTHEAST_1 }}@gateway01.ap-northeast-1.prod.aws.tidbcloud.com/test
node ConnectTest.js
ap-southeast-1:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: connect cluster ap-southeast-1
run: |
cd example_code/serverless-driver
npm install @tidbcloud/serverless
echo "eQsaVQSBNukNp7k.root:[email protected]"
export DATABASE_URL=mysql://eQsaVQSBNukNp7k.root:${{ secrets.CLUSTER_PSWD_AP_SOUTHEAST_1 }}@gateway01.ap-southeast-1.prod.aws.tidbcloud.com/test
node ConnectTest.js
eu-central-1:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: connect cluster eu-central-1
run: |
cd example_code/serverless-driver
npm install @tidbcloud/serverless
echo "Bxoh2PviimqNru3.root:[email protected]"
export DATABASE_URL=mysql://Bxoh2PviimqNru3.root:${{ secrets.CLUSTER_PSWD_EU_CENTRAL_1 }}@gateway01.eu-central-1.prod.aws.tidbcloud.com/test
node ConnectTest.js