add oceanbase-ce ci workflow #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()' |