Add tests
This commit is contained in:
parent
75d5c0f5ea
commit
730b52088f
24
.github/workflows/rust.yml
vendored
24
.github/workflows/rust.yml
vendored
@ -383,6 +383,14 @@ jobs:
|
||||
--test '*'
|
||||
--features default,sqlx-sqlite,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
|
||||
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: >
|
||||
--manifest-path sea-orm-migration/Cargo.toml
|
||||
--test '*'
|
||||
--features sqlx-sqlite,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
|
||||
|
||||
mysql:
|
||||
name: MySQL
|
||||
needs:
|
||||
@ -444,6 +452,14 @@ jobs:
|
||||
--test '*'
|
||||
--features default,sqlx-mysql,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
|
||||
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: >
|
||||
--manifest-path sea-orm-migration/Cargo.toml
|
||||
--test '*'
|
||||
--features sqlx-mysql,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
|
||||
|
||||
mariadb:
|
||||
name: MariaDB
|
||||
needs:
|
||||
@ -562,3 +578,11 @@ jobs:
|
||||
args: >
|
||||
--test '*'
|
||||
--features default,sqlx-postgres,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
|
||||
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: >
|
||||
--manifest-path sea-orm-migration/Cargo.toml
|
||||
--test '*'
|
||||
--features sqlx-postgres,runtime-${{ matrix.runtime }}-${{ matrix.tls }}
|
||||
|
@ -52,27 +52,9 @@ smol = "1.2.5"
|
||||
[features]
|
||||
default = [ "codegen", "runtime-async-std-native-tls" ]
|
||||
codegen = [ "sea-schema", "sea-orm-codegen" ]
|
||||
runtime-actix-native-tls = [
|
||||
"sqlx/runtime-actix-native-tls",
|
||||
"sea-schema/runtime-actix-native-tls",
|
||||
]
|
||||
runtime-async-std-native-tls = [
|
||||
"sqlx/runtime-async-std-native-tls",
|
||||
"sea-schema/runtime-async-std-native-tls",
|
||||
]
|
||||
runtime-tokio-native-tls = [
|
||||
"sqlx/runtime-tokio-native-tls",
|
||||
"sea-schema/runtime-tokio-native-tls",
|
||||
]
|
||||
runtime-actix-rustls = [
|
||||
"sqlx/runtime-actix-rustls",
|
||||
"sea-schema/runtime-actix-rustls",
|
||||
]
|
||||
runtime-async-std-rustls = [
|
||||
"sqlx/runtime-async-std-rustls",
|
||||
"sea-schema/runtime-async-std-rustls",
|
||||
]
|
||||
runtime-tokio-rustls = [
|
||||
"sqlx/runtime-tokio-rustls",
|
||||
"sea-schema/runtime-tokio-rustls",
|
||||
]
|
||||
runtime-actix-native-tls = [ "sqlx/runtime-actix-native-tls", "sea-schema/runtime-actix-native-tls" ]
|
||||
runtime-async-std-native-tls = [ "sqlx/runtime-async-std-native-tls", "sea-schema/runtime-async-std-native-tls" ]
|
||||
runtime-tokio-native-tls = [ "sqlx/runtime-tokio-native-tls", "sea-schema/runtime-tokio-native-tls" ]
|
||||
runtime-actix-rustls = [ "sqlx/runtime-actix-rustls", "sea-schema/runtime-actix-rustls" ]
|
||||
runtime-async-std-rustls = [ "sqlx/runtime-async-std-rustls", "sea-schema/runtime-async-std-rustls" ]
|
||||
runtime-tokio-rustls = [ "sqlx/runtime-tokio-rustls", "sea-schema/runtime-tokio-rustls" ]
|
||||
|
@ -28,6 +28,12 @@ tracing = { version = "0.1", features = ["log"] }
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
|
||||
[features]
|
||||
sqlx-mysql = ["sea-orm/sqlx-mysql", "sea-orm/runtime-async-std-native-tls"]
|
||||
sqlx-postgres = ["sea-orm/sqlx-postgres", "sea-orm/runtime-async-std-native-tls"]
|
||||
sqlx-sqlite = ["sea-orm/sqlx-sqlite", "sea-orm/runtime-async-std-native-tls"]
|
||||
sqlx-mysql = ["sea-orm/sqlx-mysql"]
|
||||
sqlx-postgres = ["sea-orm/sqlx-postgres"]
|
||||
sqlx-sqlite = ["sea-orm/sqlx-sqlite"]
|
||||
runtime-actix-native-tls = [ "sea-orm/runtime-actix-native-tls" ]
|
||||
runtime-async-std-native-tls = [ "sea-orm/runtime-async-std-native-tls" ]
|
||||
runtime-tokio-native-tls = [ "sea-orm/runtime-tokio-native-tls" ]
|
||||
runtime-actix-rustls = [ "sea-orm/runtime-actix-rustls" ]
|
||||
runtime-async-std-rustls = [ "sea-orm/runtime-async-std-rustls" ]
|
||||
runtime-tokio-rustls = [ "sea-orm/runtime-tokio-rustls" ]
|
Loading…
x
Reference in New Issue
Block a user