Skip to content

test: add Java test cases for oceanbase-ce #11

test: add Java test cases for oceanbase-ce

test: add Java test cases for oceanbase-ce #11

name: test oceanbase-ce
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
paths:
- '.github/workflows/java-test-oceanbase-ce.yml'
- '.github/workflows/test-oceanbase-ce.yml'
- 'oceanbase-ce/**'
- 'test/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build Docker image
run: ./oceanbase-ce/docker_build.sh
- name: Export Docker image
run: docker save -o oceanbase-ce.tar oceanbase-ce
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: oceanbase-ce
path: oceanbase-ce.tar
test-slim:
needs: build
uses: ./.github/workflows/java-test-oceanbase-ce.yml
with:
mode: slim
port: 1234
sys_password: ''
test_tenant: test
test_password: 123456
server_ip: 127.0.0.1
rs_list: 127.0.0.1:2882:2881
init_sql: "ALTER USER root IDENTIFIED BY '123456'"