diff --git a/.cargo/config.toml b/.cargo/config.toml deleted file mode 100644 index 8af59dd..0000000 --- a/.cargo/config.toml +++ /dev/null @@ -1,2 +0,0 @@ -[env] -RUST_TEST_THREADS = "1" diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index 7d4006e..cc3fdec 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -39,7 +39,9 @@ jobs: echo "MYSQL_PASSWORD=root" > .env echo "MYSQL_HOST=127.0.0.1" >> .env echo "POSTGRES_PASSWORD=postgres" >> .env - cargo test --all-features + cargo test --all-features --lib -- --test-threads 1 + cargo test --all-features --doc -- --test-threads 1 + cargo test --all-features --examples - name: Install latest mdBook run: | tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name') diff --git a/Cargo.lock b/Cargo.lock index 04e2693..7c55bde 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -804,9 +804,8 @@ dependencies = [ [[package]] name = "diesel_async_migrations" -version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a700d6b83a17973b94d3065970fd2b36f1036c3fe08adcbdce1c9beb8fb25553" +version = "0.11.0" +source = "git+https://github.com/yasamoka/diesel_async_migrations#ede3f9c36df9d23a6ec6802f627b4ee3a571f727" dependencies = [ "diesel", "diesel-async", @@ -817,9 +816,8 @@ dependencies = [ [[package]] name = "diesel_async_migrations_macros" -version = "0.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05de210f31e6ac18162501b03c37f839af9f9fd6dd6de2bb4031ae6691c47679" +version = "0.11.0" +source = "git+https://github.com/yasamoka/diesel_async_migrations#ede3f9c36df9d23a6ec6802f627b4ee3a571f727" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index dfd70ee..45b9aa0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -63,7 +63,7 @@ poem = "2.0.1" serde = "1.0.197" serde_json = "1.0.114" tokio-postgres = "0.7.10" -diesel_async_migrations = "0.12.0" +diesel_async_migrations = { git = "https://github.com/yasamoka/diesel_async_migrations" } [features] diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..cddc9bb --- /dev/null +++ b/test.sh @@ -0,0 +1,3 @@ +cargo test --all-features --lib -- --test-threads 1 && \ +cargo test --all-features --doc -- --test-threads 1 && \ +cargo test --all-features --examples \ No newline at end of file