Removing migrations
All checks were successful
Rust Build / Check (pull_request) Successful in 45s
Rust Build / Test Suite (pull_request) Successful in 52s
Rust Build / Rustfmt (pull_request) Successful in 24s
Rust Build / Clippy (pull_request) Successful in 56s
Rust Build / build (pull_request) Successful in 1m12s

This commit is contained in:
2025-04-04 21:20:59 -04:00
parent a933f4d11c
commit 34be27211b

View File

@@ -69,16 +69,6 @@ jobs:
# NOTE: Do NOT use continue-on-error here. # NOTE: Do NOT use continue-on-error here.
# If Docker isn't working as expected, the job SHOULD fail here. # If Docker isn't working as expected, the job SHOULD fail here.
# --- Optional but Recommended: Database Migrations Step --- # --- 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 - name: Run tests
env: env:
# Define DATABASE_URL for tests to use # Define DATABASE_URL for tests to use