diff --git a/.github/workflows/test-integration.yml b/.github/workflows/test-integration.yml index cd8c006..3c1bbab 100644 --- a/.github/workflows/test-integration.yml +++ b/.github/workflows/test-integration.yml @@ -17,7 +17,7 @@ env: jobs: integration-tests: runs-on: ubuntu-latest - + services: postgres: image: postgres:17 @@ -107,7 +107,7 @@ jobs: echo "Waiting for readur server... ($i/30)" sleep 2 done - + # Verify the server is actually running if ! curl -f http://localhost:8000/api/health > /dev/null 2>&1; then echo "ERROR: Server failed to start properly!" @@ -125,7 +125,7 @@ jobs: sleep 1 done echo "PostgreSQL is ready!" - + - name: Verify database connection run: | echo "Testing database connection..." @@ -137,7 +137,7 @@ jobs: echo "Running tests with DATABASE_URL: $DATABASE_URL" echo "Environment check:" env | grep -E "(DATABASE_URL|JWT_SECRET|API_URL)" | sort - cargo test --test '*' --features test-utils -- --test-threads=1 + cargo test --test '*' --features test-utils --no-fail-fast -- --test-threads=1 env: DATABASE_URL: ${{ env.DATABASE_URL }} TEST_DATABASE_URL: ${{ env.DATABASE_URL }} diff --git a/.github/workflows/test-unit.yml b/.github/workflows/test-unit.yml index b72981a..d2c7c07 100644 --- a/.github/workflows/test-unit.yml +++ b/.github/workflows/test-unit.yml @@ -60,8 +60,8 @@ jobs: - name: Run Rust unit tests run: | - cargo test --lib - cargo test --tests unit_tests + cargo test --lib --no-fail-fast + cargo test --tests unit_tests --no-fail-fast env: RUST_BACKTRACE: 1