Skip to content

Commit

Permalink
run postgres migrations before tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oiwn committed Dec 26, 2024
1 parent dc12fe8 commit a19a41e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install sqlx-cli
run: cargo install sqlx-cli --no-default-features --features postgres

- name: Run database migrations
run: cargo sqlx migrate run

- name: Cargo check
run: cargo check --all-features --workspace
Expand Down

0 comments on commit a19a41e

Please sign in to comment.