From 0057245261b8f75e24810a112a92d011fc6ffcf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Wed, 26 Feb 2025 12:56:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20GitHub=20Actions=20?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=EF=BC=8C=E7=AE=80=E5=8C=96=20Redis?= =?UTF-8?q?=20=E5=92=8C=20Kingbase=20=E6=B5=8B=E8=AF=95=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/services-test.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/services-test.yaml b/.github/workflows/services-test.yaml index 9cbc7fb..2565c4a 100644 --- a/.github/workflows/services-test.yaml +++ b/.github/workflows/services-test.yaml @@ -1,11 +1,6 @@ on: push: workflow_dispatch: - inputs: - test: - description: 'Run tests' - required: true - default: 'true' jobs: services-test: runs-on: ubuntu-arm64 @@ -18,7 +13,14 @@ jobs: steps: - name: Test with Redis run: | - docker exec ${{ job.services.redissss.id }} whoami + set -x; + docker ps --format "table {{.Names}}" + # 找出 redissss 的 container id + REDIS_CONTAINER_ID=$(docker ps --filter "name=redissss" --format "{{.ID}}") + echo $REDIS_CONTAINER_ID + docker exec $REDIS_CONTAINER_ID whoami + echo ${{ job.services.redissss.ports }} + echo ${{ job.services.redissss.id }} kb-service-test: runs-on: ubuntu-arm64 services: @@ -28,6 +30,8 @@ jobs: steps: - name: Test with Kingbase run: | + set -x; + docker ps --format "table {{.Names}}" sleep 3 docker exec ${{ job.services.kingbaseeeee.id }} whoami