From 4647a32b33f99b16c6bcdd3e5b7df329ed34cb71 Mon Sep 17 00:00:00 2001
From: Christian Legnitto <LegNeato@users.noreply.github.com>
Date: Mon, 20 Jul 2020 21:38:22 -1000
Subject: [PATCH] Add examples to CI (#714)

---
 Cargo.toml                                 |  6 +++---
 examples/basic_subscriptions/Cargo.toml    |  1 +
 examples/basic_subscriptions/Makefile.toml | 15 +++++++++++++++
 examples/warp_async/Cargo.toml             |  1 +
 examples/warp_async/Makefile.toml          | 15 +++++++++++++++
 examples/warp_subscriptions/Cargo.toml     |  3 +--
 examples/warp_subscriptions/Makefile.toml  | 15 +++++++++++++++
 integration_tests/async_await/Cargo.toml   |  1 +
 8 files changed, 52 insertions(+), 5 deletions(-)
 create mode 100644 examples/basic_subscriptions/Makefile.toml
 create mode 100644 examples/warp_async/Makefile.toml
 create mode 100644 examples/warp_subscriptions/Makefile.toml

diff --git a/Cargo.toml b/Cargo.toml
index 26839c3b..79429a10 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,6 +4,9 @@ members = [
   "juniper_benchmarks",
   "juniper_codegen",
   "juniper",
+  "examples/basic_subscriptions",
+  "examples/warp_async",
+  "examples/warp_subscriptions",
   "integration_tests/juniper_tests",
   "integration_tests/async_await",
   "integration_tests/codegen_fail",
@@ -17,7 +20,4 @@ members = [
 ]
 exclude = [
   "docs/book/tests",
-  "examples/basic_subscriptions",
-  "examples/warp_async",
-  "examples/warp_subscriptions",
 ]
diff --git a/examples/basic_subscriptions/Cargo.toml b/examples/basic_subscriptions/Cargo.toml
index e6ac93a2..26877d70 100644
--- a/examples/basic_subscriptions/Cargo.toml
+++ b/examples/basic_subscriptions/Cargo.toml
@@ -2,6 +2,7 @@
 name = "basic_subscriptions"
 version = "0.1.0"
 edition = "2018"
+publish = false
 authors = ["Jordao Rosario <jordao.rosario01@gmail.com>"]
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
diff --git a/examples/basic_subscriptions/Makefile.toml b/examples/basic_subscriptions/Makefile.toml
new file mode 100644
index 00000000..13dc05ed
--- /dev/null
+++ b/examples/basic_subscriptions/Makefile.toml
@@ -0,0 +1,15 @@
+[tasks.run]
+disabled = true
+
+[tasks.release]
+disabled = true
+[tasks.release-some]
+disabled = true
+[tasks.release-local-test]
+disabled = true
+[tasks.release-some-local-test]
+disabled = true
+[tasks.release-dry-run]
+disabled = true
+[tasks.release-some-dry-run]
+disabled = true
\ No newline at end of file
diff --git a/examples/warp_async/Cargo.toml b/examples/warp_async/Cargo.toml
index 9285791f..22628350 100644
--- a/examples/warp_async/Cargo.toml
+++ b/examples/warp_async/Cargo.toml
@@ -2,6 +2,7 @@
 name = "warp_async"
 version = "0.1.0"
 edition = "2018"
+publish = false
 authors = ["Christoph Herzog <chris@theduke.at>"]
 
 [dependencies]
diff --git a/examples/warp_async/Makefile.toml b/examples/warp_async/Makefile.toml
new file mode 100644
index 00000000..13dc05ed
--- /dev/null
+++ b/examples/warp_async/Makefile.toml
@@ -0,0 +1,15 @@
+[tasks.run]
+disabled = true
+
+[tasks.release]
+disabled = true
+[tasks.release-some]
+disabled = true
+[tasks.release-local-test]
+disabled = true
+[tasks.release-some-local-test]
+disabled = true
+[tasks.release-dry-run]
+disabled = true
+[tasks.release-some-dry-run]
+disabled = true
\ No newline at end of file
diff --git a/examples/warp_subscriptions/Cargo.toml b/examples/warp_subscriptions/Cargo.toml
index 152f30a0..7fc8fb4a 100644
--- a/examples/warp_subscriptions/Cargo.toml
+++ b/examples/warp_subscriptions/Cargo.toml
@@ -2,8 +2,7 @@
 name = "warp_subscriptions"
 version = "0.1.0"
 edition = "2018"
-
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+publish = false
 
 [dependencies]
 env_logger = "0.6.2"
diff --git a/examples/warp_subscriptions/Makefile.toml b/examples/warp_subscriptions/Makefile.toml
new file mode 100644
index 00000000..13dc05ed
--- /dev/null
+++ b/examples/warp_subscriptions/Makefile.toml
@@ -0,0 +1,15 @@
+[tasks.run]
+disabled = true
+
+[tasks.release]
+disabled = true
+[tasks.release-some]
+disabled = true
+[tasks.release-local-test]
+disabled = true
+[tasks.release-some-local-test]
+disabled = true
+[tasks.release-dry-run]
+disabled = true
+[tasks.release-some-dry-run]
+disabled = true
\ No newline at end of file
diff --git a/integration_tests/async_await/Cargo.toml b/integration_tests/async_await/Cargo.toml
index c3abc53e..6fa2cbd2 100644
--- a/integration_tests/async_await/Cargo.toml
+++ b/integration_tests/async_await/Cargo.toml
@@ -2,6 +2,7 @@
 name = "async_await"
 version = "0.1.0"
 authors = ["Christoph Herzog <chris@theduke.at>"]
+publish = false
 edition = "2018"
 
 [dependencies]