Skip to content

Commit 0a6f834

Browse files
committed
Include checks for offline queries in CI
1 parent 01805b0 commit 0a6f834

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,21 @@ jobs:
2727
cargo clippy --version
2828
cargo clippy --all-targets --all-features -- --deny warnings
2929
30+
sqlx_offline:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
- uses: dtolnay/rust-toolchain@stable
35+
with:
36+
toolchain: stable
37+
- uses: Swatinem/rust-cache@v2
38+
- name: Check Prepared Queries
39+
script:
40+
- cargo install --locked sqlx-cli
41+
- touch numtracker.db
42+
- cargo sqlx migrate run
43+
- cargo sqlx prepare --check
44+
3045
test:
3146
runs-on: ubuntu-latest
3247
steps:

0 commit comments

Comments
 (0)