From 6e1c65e515fe41800287ba6bb42992bcbac1dee3 Mon Sep 17 00:00:00 2001 From: Daniel Cosme Date: Tue, 20 Feb 2024 21:06:41 -0500 Subject: [PATCH] Add offline sqlx check --- .github/workflows/general.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/general.yml b/.github/workflows/general.yml index e722ece..a126aab 100644 --- a/.github/workflows/general.yml +++ b/.github/workflows/general.yml @@ -51,6 +51,7 @@ jobs: SKIP_DOCKER=true ./scripts/init_db.sh - name: Check sqlx-data.json is up-to-date run: | + SQLX_OFFLINE=true cargo sqlx prepare --workspace --check - name: Run tests run: cargo test @@ -101,6 +102,7 @@ jobs: SKIP_DOCKER=true ./scripts/init_db.sh - name: Check sqlx-data.json is up-to-date run: | + SQLX_OFFLINE=true cargo sqlx prepare --workspace --check - name: Linting run: cargo clippy -- -D warnings