Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
greenygh0st committed Oct 1, 2024
1 parent dc83b38 commit b0ada0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker-image-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
echo "Waiting for PostgreSQL to be ready..."
sleep 5
done
# Set PGPASSWORD to allow the psql command to connect
export PGPASSWORD=your_db_password
psql -h localhost -U your_db_user -d your_database_name -c "CREATE TABLE test_table (id SERIAL PRIMARY KEY, name VARCHAR(50));"
psql -h localhost -U your_db_user -d your_database_name -c "INSERT INTO test_table (name) VALUES ('Test Data 1'), ('Test Data 2');"
Expand Down Expand Up @@ -83,4 +85,3 @@ jobs:
-e PGDATABASE=your_database_name \
-e PGHOST=localhost \
pg_backup_image sh -c "pg_restore -d your_database_name -U your_db_user /backup/$BACKUP_FILE && psql -h localhost -U your_db_user -d your_database_name -c 'SELECT * FROM test_table;'"

0 comments on commit b0ada0b

Please sign in to comment.