fix: ci with sqlx
CI / Rust CI (push) Failing after 1m10s
Publish & Deploy / Build and Push to Registry (push) Failing after 13s
Publish & Deploy / Deploy via SSH (push) Has been skipped

This commit is contained in:
2026-05-07 19:17:01 +02:00
parent 2e81132f2d
commit a6b9ee5b09
2 changed files with 12 additions and 3 deletions
+2
View File
@@ -33,6 +33,8 @@ jobs:
${{ runner.os }}-cargo-
- name: Run tests
env:
SQLX_OFFLINE: true
run: cargo test --workspace --verbose --all
- name: Run Clippy (linter)
+10 -3
View File
@@ -12,23 +12,30 @@ repos:
- id: clippy
name: clippy
entry: cargo clippy -- -D warnings
entry: bash -c 'SQLX_OFFLINE=true cargo clippy -- -D warnings'
language: system
types: [rust]
pass_filenames: false
stages: [pre-commit]
- id: sqlx-prepare-check
name: sqlx prepare check
entry: cargo sqlx prepare --check
language: system
pass_filenames: false
stages: [pre-push]
# ─────────────── PRE-PUSH (heavy checks) ───────────────
- id: test
name: cargo test
entry: cargo test --all
entry: bash -c 'SQLX_OFFLINE=true cargo test --all'
language: system
pass_filenames: false
stages: [pre-push]
- id: build
name: cargo build release
entry: cargo build --release
entry: bash -c 'SQLX_OFFLINE=true cargo build --release'
language: system
pass_filenames: false
stages: [pre-push]