Skip to content

Commit

Permalink
Include checks for offline queries in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoliaw committed Nov 28, 2024
1 parent 01805b0 commit b459f83
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,21 @@ jobs:
cargo clippy --version
cargo clippy --all-targets --all-features -- --deny warnings
sqlx_offline:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Check Prepared Queries
run:
- cargo install --locked sqlx-cli
- touch numtracker.db
- cargo sqlx migrate run
- cargo sqlx prepare --check

test:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit b459f83

Please sign in to comment.