diff --git a/.github/workflows/sqlx.yml b/.github/workflows/sqlx.yml index a7d93f5e6c..599b90c33a 100644 --- a/.github/workflows/sqlx.yml +++ b/.github/workflows/sqlx.yml @@ -103,10 +103,12 @@ jobs: -p sqlx-macros-core --all-features + # Note: use `--lib` to not run integration tests that require a DB - name: Test sqlx run: > cargo test -p sqlx + --lib --all-features sqlite: diff --git a/Cargo.lock b/Cargo.lock index 3f711abedd..1a437b0519 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3639,6 +3639,7 @@ dependencies = [ "sha1", "sha2", "smallvec", + "sqlx", "sqlx-core", "stringprep", "thiserror", diff --git a/sqlx-mysql/Cargo.toml b/sqlx-mysql/Cargo.toml index 493562c750..a904bc0eef 100644 --- a/sqlx-mysql/Cargo.toml +++ b/sqlx-mysql/Cargo.toml @@ -72,5 +72,8 @@ whoami = { version = "1.2.1", default-features = false } serde = { version = "1.0.144", optional = true } +[dev-dependencies] +sqlx = { workspace = true, features = ["mysql"] } + [lints] workspace = true