From 4c16f59b6028086c55ed61f105be0689f93292ed Mon Sep 17 00:00:00 2001 From: He Wang Date: Thu, 18 Apr 2024 20:52:59 +0800 Subject: [PATCH] build(ci): use setup-oceanbase-ce to start oceanabse container (#30) --- .github/workflows/ci.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec74aa0..d256933 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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/setup-oceanbase-ce@v1.0 - 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/setup-oceanbase-ce@v1.0 - 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/setup-oceanbase-ce@v1.0 - name: Run example for ${{ matrix.module }} run: | cd python/${{ matrix.module }}