mirror of
https://github.com/readur/readur.git
synced 2026-02-21 14:30:55 -06:00
fix(tests): try to fix the auto_resume_tests yet again for integration tests
This commit is contained in:
14
.github/workflows/test-integration.yml
vendored
14
.github/workflows/test-integration.yml
vendored
@@ -88,6 +88,20 @@ jobs:
|
||||
sleep 2
|
||||
done
|
||||
|
||||
- name: Wait for PostgreSQL to be ready
|
||||
run: |
|
||||
until pg_isready -h localhost -p 5432 -U postgres; do
|
||||
echo "Waiting for PostgreSQL..."
|
||||
sleep 1
|
||||
done
|
||||
echo "PostgreSQL is ready!"
|
||||
|
||||
- name: Verify database connection
|
||||
run: |
|
||||
echo "Testing database connection..."
|
||||
PGPASSWORD=postgres psql -h localhost -p 5432 -U postgres -d readur_test -c "SELECT version();"
|
||||
echo "Database connection successful!"
|
||||
|
||||
- name: Run integration tests
|
||||
run: |
|
||||
cargo test --test '*' -- --test-threads=1
|
||||
|
||||
Reference in New Issue
Block a user