Skip to content

fix: initialize catalog from connection properties #356

fix: initialize catalog from connection properties

fix: initialize catalog from connection properties #356

name: build-3360
permissions:
contents: read
on:
push:
branches:
- main
- '3.0'
paths-ignore:
- 'LICENSE'
- '*.md'
- '*.txt'
pull_request:
branches:
- main
- '3.0'
paths-ignore:
- 'LICENSE'
- '*.md'
- '*.txt'
jobs:
build:
strategy:
matrix:
# os: [ ubuntu-latest,macos-latest,windows-latest ]
os: [ Ubuntu-22.04 ]
java: [ 8 ]
maven: [ '3.6.3' ]
runs-on: ${{ matrix.os }}
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
run: |
tar -zxf TDengine-server-3.3.6.0-Linux-x64.tar.gz
cd TDengine-server-3.3.6.0
sudo ./install.sh -e no
- name: shell
run: |
cat >start.sh<<EOF
ulimit -n 65535 && TAOS_SUPPORT_VNODES=256 taosd
EOF
- name: taosd
run: nohup sudo sh ./start.sh &
- name: start taosadapter
run: sudo taosadapter &
- name: checkout
uses: actions/checkout@v4
with:
path: 'jdbc-workspace'
- name: set up java
uses: actions/setup-java@v3
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: ${{ matrix.java }}
java-package: jdk
- name: Test
working-directory: jdbc-workspace
env:
TDENGINE_CLOUD_URL: ${{ secrets.TDENGINE_CLOUD_URL }}
TDENGINE_HOST: ${{ vars.TDENGINE_HOST }}
TDENGINE_JNI_PORT: ${{ vars.TDENGINE_JNI_PORT }}
TDENGINE_RS_PORT: ${{ vars.TDENGINE_RS_PORT }}
TDENGINE_WS_PORT: ${{ vars.TDENGINE_WS_PORT }}
TDENGINE_USER: ${{ secrets.TDENGINE_USER }}
TDENGINE_PASSWORD: ${{ secrets.TDENGINE_PASSWORD }}
TD_3360_TEST: 'true'
run: mvn -B clean verify --file pom.xml -Dcoverage.minimum=0.5
- name: Upload logs on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: service-logs
path: |
/var/log/taos/**/*
retention-days: 7