From cb54596b8129aad2ba87958ca965736904fd5df9 Mon Sep 17 00:00:00 2001 From: Mehrn0ush Date: Sat, 26 Oct 2024 11:09:11 +0330 Subject: [PATCH] ensure the PostgreSQL and Redis services are properly configured and ready --- .github/workflows/feature-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/feature-ci.yml b/.github/workflows/feature-ci.yml index dea3966..807ba26 100644 --- a/.github/workflows/feature-ci.yml +++ b/.github/workflows/feature-ci.yml @@ -63,7 +63,7 @@ jobs: until pg_isready -h localhost -p 5432 -U rustify_auth; do sleep 1 done - sleep 10 # Additional wait time for stability + sleep 5 # Additional wait time for stability - name: Run migrations env: @@ -85,7 +85,7 @@ jobs: refresh_token VARCHAR, expires_at TIMESTAMP, scope VARCHAR, - client_id VARCHAR REFERENCES clients(client_id), + client_id VARCHAR REFERENCES clients(client_id) ON DELETE CASCADE, token_type VARCHAR DEFAULT 'Bearer' ); EOF @@ -104,8 +104,8 @@ jobs: DATABASE_URL: postgres://rustify_auth:password@localhost:5432/rustify_auth_db REDIS_URL: redis://localhost:6379 JWT_SECRET: test_secret - RUST_BACKTRACE: 1 - RUST_LOG: debug # Enable detailed Rust logs + RUST_BACKTRACE: full + RUST_LOG: debug run: cargo test -- --test-threads=1 format: