Skip to content

Commit 846460c

Browse files
committed
Include checks for offline queries in CI
1 parent 01805b0 commit 846460c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,22 @@ 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: Install sqlx CLI
39+
run: cargo install [email protected]
40+
- name: Check Prepared Queries
41+
run: |
42+
touch numtracker.db
43+
cargo sqlx migrate run
44+
cargo sqlx prepare --check
45+
3046
test:
3147
runs-on: ubuntu-latest
3248
steps:

0 commit comments

Comments
 (0)