优化 GitHub Actions 工作流,简化 Redis 和 Kingbase 测试步骤
Some checks failed
/ hashFiles (push) Successful in 3s
/ go-hashfiles (push) Successful in 13s
/ services-test (push) Successful in 5s
/ kb-service-test (push) Failing after 9s
/ job1 (push) Successful in -1s
/ job2 (push) Successful in -2s
/ job3 (push) Has been skipped
Some checks failed
/ hashFiles (push) Successful in 3s
/ go-hashfiles (push) Successful in 13s
/ services-test (push) Successful in 5s
/ kb-service-test (push) Failing after 9s
/ job1 (push) Successful in -1s
/ job2 (push) Successful in -2s
/ job3 (push) Has been skipped
This commit is contained in:
16
.github/workflows/services-test.yaml
vendored
16
.github/workflows/services-test.yaml
vendored
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user