Skip to content

Commit

Permalink
build(ci): use setup-oceanbase-ce to start oceanabse container (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
whhe authored Apr 18, 2024
1 parent 42696f3 commit 4c16f59
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ jobs:
with:
go-version: '1.20'
- name: Start docker container
timeout-minutes: 5
run: |
docker run --name oceanbase-ce --network host -e MODE=slim -e FASTBOOT=true -d oceanbase/oceanbase-ce
eval 'while ! docker logs oceanbase-ce | grep -q "boot success!"; do echo "booting..."; sleep 10; done'
echo "boot success!"
uses: oceanbase/[email protected]
- name: Run example for ${{ matrix.module }}
run: |
cd golang/${{ matrix.module }}
Expand All @@ -53,11 +49,7 @@ jobs:
distribution: 'zulu'
cache: 'maven'
- name: Start docker container
timeout-minutes: 5
run: |
docker run --name oceanbase-ce --network host -e MODE=slim -e FASTBOOT=true -d oceanbase/oceanbase-ce
eval 'while ! docker logs oceanbase-ce | grep -q "boot success!"; do echo "booting..."; sleep 10; done'
echo "boot success!"
uses: oceanbase/[email protected]
- name: Run example for ${{ matrix.module }}
run: |
cd java/${{ matrix.module }}
Expand All @@ -76,11 +68,7 @@ jobs:
with:
python-version: "3.9"
- name: Start docker container
timeout-minutes: 5
run: |
docker run --name oceanbase-ce --network host -e MODE=slim -e FASTBOOT=true -d oceanbase/oceanbase-ce
eval 'while ! docker logs oceanbase-ce | grep -q "boot success!"; do echo "booting..."; sleep 10; done'
echo "boot success!"
uses: oceanbase/[email protected]
- name: Run example for ${{ matrix.module }}
run: |
cd python/${{ matrix.module }}
Expand Down

0 comments on commit 4c16f59

Please sign in to comment.