Skip to content

Commit

Permalink
update test oceanbase-ce workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
whhe committed Jun 20, 2024
1 parent d7450c6 commit 0342238
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions .github/workflows/test-oceanbase-ce.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
name: test oceanbase-ce

on:
push:
paths:
- '.github/workflows/test-oceanbase-ce.yml'
- 'oceanbase-ce/**'
pull_request:
paths:
- '.github/workflows/test-oceanbase-ce.yml'
- 'oceanbase-ce/**'
- 'test/**'

jobs:
build:
Expand Down Expand Up @@ -46,10 +43,31 @@ jobs:
uses: oceanbase/setup-oceanbase-ce@v1
with:
image_name: oceanbase-ce
container_name: ob-slim
fastboot: false
cluster_name: docker-images-test
sql_port: 1234
rpc_port: 5678

- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'zulu'

- name: Test Docker container
env:
host: 127.0.0.1
port: 1234
sys_username: root
sys_password: ''
test_tenant: test
test_username: root@test
test_password: ''
cluster_name: docker-images-test
server_ip: 127.0.0.1
rs_list: 127.0.0.1:2882:2881
run: |
docker exec ob-slim obclient -h127.0.0.1 -P2881 -uroot -e 'select version()'
docker exec ob-slim obclient -h127.0.0.1 -P2881 -uroot@test -e 'show databases'
cd test
mvn verify

0 comments on commit 0342238

Please sign in to comment.