Merge branch 'devel' of git.kundeng.us:phoenix/icarus_auth into register_endpoint-init
All checks were successful
Rust Build / Check (pull_request) Successful in 41s
Rust Build / Test Suite (pull_request) Successful in 52s
Rust Build / Rustfmt (pull_request) Successful in 26s
Rust Build / Clippy (pull_request) Successful in 47s
Rust Build / build (pull_request) Successful in 1m12s
All checks were successful
Rust Build / Check (pull_request) Successful in 41s
Rust Build / Test Suite (pull_request) Successful in 52s
Rust Build / Rustfmt (pull_request) Successful in 26s
Rust Build / Clippy (pull_request) Successful in 47s
Rust Build / build (pull_request) Successful in 1m12s
This commit is contained in:
@@ -27,6 +27,7 @@ jobs:
|
||||
|
||||
eval $(ssh-agent -s)
|
||||
ssh-add -v ~/.ssh/icarus_models_deploy_key
|
||||
|
||||
cargo check
|
||||
|
||||
test:
|
||||
@@ -67,21 +68,10 @@ jobs:
|
||||
echo "Docker environment check complete."
|
||||
# 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 TEST_DATABASE_URL using service details and secrets
|
||||
TEST_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 $TEST_DATABASE_URL
|
||||
- name: Run tests
|
||||
env:
|
||||
# Define TEST_DATABASE_URL for tests to use
|
||||
TEST_DATABASE_URL: postgresql://${{ secrets.DB_TEST_USER || 'testuser' }}:${{ secrets.DB_TEST_PASSWORD || 'testpassword' }}@postgres:5432/${{ secrets.DB_TEST_NAME || 'testdb' }}
|
||||
# Define DATABASE_URL for tests to use
|
||||
DATABASE_URL: postgresql://${{ secrets.DB_TEST_USER || 'testuser' }}:${{ secrets.DB_TEST_PASSWORD || 'testpassword' }}@postgres:5432/${{ secrets.DB_TEST_NAME || 'testdb' }}
|
||||
RUST_LOG: info # Optional: configure test log level
|
||||
# Make SSH agent available if tests fetch private dependencies
|
||||
SSH_AUTH_SOCK: ${{ env.SSH_AUTH_SOCK }}
|
||||
@@ -93,6 +83,7 @@ jobs:
|
||||
|
||||
eval $(ssh-agent -s)
|
||||
ssh-add -v ~/.ssh/icarus_models_deploy_key
|
||||
|
||||
cargo test
|
||||
|
||||
fmt:
|
||||
|
Reference in New Issue
Block a user