From f55c64d626246fe8e5c3d8e5fa63b87fca9ab819 Mon Sep 17 00:00:00 2001 From: oomokaro1 Date: Thu, 18 Jun 2026 11:05:55 +0100 Subject: [PATCH] ci: add missing env vars and Redis service to CI workflow - Add REDIS_URL, PLATFORM_RECEIVING_ACCOUNT, STELLAR_HORIZON_URL, STELLAR_NETWORK_PASSPHRASE, FRONTEND_URL, PORT to test env - Add Redis 7 service container for tests - Fix JWT_SECRET to meet 32-char minimum --- .github/workflows/ci.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f0dad4..2baab67 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,8 +37,14 @@ jobs: env: NODE_ENV: test DATABASE_URL: postgresql://postgres:postgres@localhost:5432/orbitstream_test - JWT_SECRET: test-secret + JWT_SECRET: test-secret-at-least-32-chars-long-for-ci STELLAR_NETWORK: TESTNET + STELLAR_HORIZON_URL: https://horizon-testnet.stellar.org + STELLAR_NETWORK_PASSPHRASE: "Test SDF Network ; September 2015" + PLATFORM_RECEIVING_ACCOUNT: "GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWHF" + REDIS_URL: redis://localhost:6379 + FRONTEND_URL: http://localhost:3000 + PORT: 3001 services: postgres: @@ -54,3 +60,12 @@ jobs: --health-interval 10s --health-timeout 5s --health-retries 5 + redis: + image: redis:7 + ports: + - 6379:6379 + options: >- + --health-cmd "redis-cli ping" + --health-interval 10s + --health-timeout 5s + --health-retries 5