Skip to content

add oceanbase-ce ci workflow #7

add oceanbase-ce ci workflow

add oceanbase-ce ci workflow #7

name: CI - oceanbase-ce
on:
push:
paths:
- '.github/workflows/ci-oceanbase-ce.yml'
- 'oceanbase-ce/**'
pull_request:
paths:
- '.github/workflows/ci-oceanbase-ce.yml'
- 'oceanbase-ce/**'
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: ./.github/workflows/build-oceanbase-ce.yml
- name: Start oceanbase-ce container
timeout-minutes: 5
run: |
docker run --name ob-slim -p 2881:2881 -e MODE=slim -d oceanbase-ce
eval 'while ! docker logs ob-slim | grep -q "boot success!"; do echo "booting..."; sleep 10; done'
echo "boot success!"
- name: Test oceanbase-ce container
run: docker exec ob-slim obclient -h127.0.0.1 -P2881 -uroot -e 'select version()'