dynamic_db #17
@@ -69,16 +69,6 @@ jobs:
|
||||
# NOTE: Do NOT use continue-on-error here.
|
||||
# If Docker isn't working as expected, the job SHOULD fail here.
|
||||
# --- Optional but Recommended: Database Migrations Step ---
|
||||
- name: Run Database Migrations
|
||||
env:
|
||||
# Define DATABASE_URL using service details and secrets
|
||||
DATABASE_URL: postgresql://${{ secrets.DB_TEST_USER || 'testuser' }}:${{ secrets.DB_TEST_PASSWORD || 'testpassword' }}@postgres:5432/${{ secrets.DB_TEST_NAME || 'testdb' }}
|
||||
# Make SSH agent available if migrations fetch private dependencies
|
||||
SSH_AUTH_SOCK: ${{ env.SSH_AUTH_SOCK }}
|
||||
run: |
|
||||
echo "Running database migrations..."
|
||||
cargo install sqlx-cli --no-default-features --features native-tls,postgres
|
||||
sqlx database setup --database-url $DATABASE_URL
|
||||
- name: Run tests
|
||||
env:
|
||||
# Define DATABASE_URL for tests to use
|
||||
|
Reference in New Issue
Block a user