-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(ci): use setup-oceanbase-ce to start oceanabse container (#30)
- Loading branch information
Showing
1 changed file
with
3 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
@@ -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 }} | ||
|
@@ -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 }} | ||
|