Skip to content

Commit

Permalink
fix sqlx CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar authored and GuillaumeGomez committed Oct 4, 2024
1 parent 45f57c8 commit c9498fb
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ jobs:
with:
prefix-key: ${{ env.RUST_CACHE_KEY }}

- name: Build
run: cargo build --workspace --locked

- name: Launch postgres
run: |
cp .env.sample .env
Expand All @@ -52,12 +49,12 @@ jobs:
# Make sure the database is actually working
psql "${DOCSRS_DATABASE_URL}"
- name: run database migrations
run: cargo run -- database migrate

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

- name: run database migrations
run: cargo sqlx migrate run --database-url $DOCSRS_DATABASE_URL

- name: run sqlx prepare --check
run: just sqlx-check

Expand Down Expand Up @@ -99,7 +96,7 @@ jobs:
sleep 5
# Make sure the database is actually working
psql "${DOCSRS_DATABASE_URL}"
- name: run workspace tests
run: |
cargo test --workspace --locked --no-fail-fast
Expand Down

0 comments on commit c9498fb

Please sign in to comment.