fix(ci): use Redis service hostname instead of localhost to avoid IPv6 connection issues
Some checks failed
CI / docker (push) Has been skipped
CI / lint (push) Successful in 13s
CI / test (push) Failing after 1m15s
CI / build (push) Has been skipped

This commit is contained in:
2026-08-20 17:44:35 +03:00
parent 6396f4e6ab
commit dbafaf57ce

View File

@@ -84,21 +84,9 @@ jobs:
- name: Download Go modules
run: go mod download
- name: Set up Redis
run: |
# Wait for Redis to be ready
for i in {1..30}; do
if redis-cli ping | grep -q PONG; then
echo "Redis is ready"
break
fi
echo "Waiting for Redis..."
sleep 1
done
- name: Run tests
env:
REDIS_ADDR: localhost:6379
REDIS_ADDR: redis:6379
run: go test ./... -v -race -cover
build:
@@ -134,21 +122,9 @@ jobs:
- name: Download Go modules
run: go mod download
- name: Set up Redis
run: |
# Wait for Redis to be ready
for i in {1..30}; do
if redis-cli ping | grep -q PONG; then
echo "Redis is ready"
break
fi
echo "Waiting for Redis..."
sleep 1
done
- name: Build binary
env:
REDIS_ADDR: localhost:6379
REDIS_ADDR: redis:6379
run: go build -o api ./cmd/api
docker: