Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix connection fail #18

Merged
merged 8 commits into from
Jun 12, 2023
Merged
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
13 changes: 9 additions & 4 deletions .github/workflows/connect-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Serverless Connect Test

on:
schedule:
- cron: "0 0 * * *" # 0:00 UTC every day
- cron: "*/30 * * * *" # every 30 minutes
workflow_dispatch:

jobs:
Expand All @@ -12,13 +12,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up ticloud
uses: tidbcloud/setup-tidbcloud-cli@v0
with:
api_public_key: ${{ secrets.TLS_PUBLIC_KEY }}
api_private_key: ${{ secrets.TLS_PRIVATE_KEY }}

- name: Get Connection Info
run: |
# delete cluster if exists
Expand Down Expand Up @@ -206,6 +206,8 @@ jobs:
- name: Install mysql in macos
if: ${{ matrix.os == 'macos-latest' }}
run: |
# https://github.com/Homebrew/homebrew-core/issues/130258
ln -sv $(brew --prefix zlib)/lib/libz.dylib $(brew --prefix)/lib/libzlib.dylib
brew install mysql
export PATH=$PATH:/usr/local/mysql/bin
- name: Run test on ${{ matrix.os }}
Expand Down Expand Up @@ -286,6 +288,8 @@ jobs:
- name: Install mysql in macos
if: ${{ matrix.os == 'macos-latest' }}
run: |
# https://github.com/Homebrew/homebrew-core/issues/130258
ln -sv $(brew --prefix zlib)/lib/libz.dylib $(brew --prefix)/lib/libzlib.dylib
brew install mysql
- name: Run test on ${{ matrix.os }}
run: |
Expand Down Expand Up @@ -402,7 +406,8 @@ jobs:
run: |
brew install mysql
cd example_code/ruby
gem install mysql2
# https://github.com/Homebrew/homebrew-core/issues/130258
gem install mysql2 -- --with-mysql-dir=$(brew --prefix mysql)
ruby ConnectTest.rb ${{needs.setup.outputs.TIDB_CLOUD_HOST}} ${{needs.setup.outputs.TIDB_CLOUD_USER}} ${{ secrets.TIDB_CLOUD_PASSWORD }}
- name: Run test on ubuntu
if: ${{ matrix.os == 'ubuntu-latest' }}
Expand Down