Skip to content

Commit

Permalink
fix(ci): create test database before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin committed Jan 25, 2025
1 parent c2d3f31 commit d492c4c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,18 @@ jobs:
- name: Check format
run: cargo +nightly fmt --all -- --check

- name: Create test database
run: |
cargo install --force sqlx-cli
cargo sqlx database create
cargo sqlx migrate run
- name: Test (default features)
timeout-minutes: 6
run: cargo test -- --nocapture

- name: Check database schema
run: |
cargo install --force sqlx-cli
cargo sqlx database create
cargo sqlx migrate run
cargo sqlx prepare --check
run: cargo sqlx prepare --check

- name: Build (default features)
run: cargo build --release
Expand Down

0 comments on commit d492c4c

Please sign in to comment.