smoke4: services + buf
smoke3 / tools (push) Successful in 25s
smoke4 / svc (push) Successful in 1m4s
smoke4 / buf (push) Failing after 43s

This commit is contained in:
gradua11y committed 2026-11-09 04:59:58 +08:00
1 parent 5ea710a4c5
commit 039d7a95ac
1 file changed
+44
+44
View File
@@ -0,0 +1,44 @@
name: smoke4
on: [push]
jobs:
svc:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17-alpine
env:
POSTGRES_DB: neoboard
POSTGRES_USER: neoboard
POSTGRES_PASSWORD: integration-test
ports:
- 5433:5432
options: >-
--health-cmd "pg_isready -U neoboard -d neoboard"
--health-interval 5s
--health-timeout 3s
--health-retries 20
redis:
image: redis:7-alpine
ports:
- 6380:6379
steps:
- name: probe services
run: |
for i in $(seq 1 20); do
if bash -c 'echo > /dev/tcp/127.0.0.1/5433' 2>/dev/null; then echo "PG_UP"; break; fi
sleep 2
done
bash -c 'echo > /dev/tcp/127.0.0.1/5433' 2>/dev/null && echo PG_REACHABLE || echo PG_UNREACHABLE
bash -c 'echo > /dev/tcp/127.0.0.1/6380' 2>/dev/null && echo REDIS_REACHABLE || echo REDIS_UNREACHABLE
buf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v1
with:
setup_only: true
- name: buf version
run: |
which buf || echo "buf not in PATH"
buf --version || echo "BUF_VERSION_FAILED"