From 80b71ee371e6edd2dc99336ff5cc80be9708d83e Mon Sep 17 00:00:00 2001 From: Anthony Simmon Date: Wed, 22 Feb 2023 00:31:09 -0500 Subject: [PATCH 1/4] Updated README --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 683ff2e..0afcb14 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,27 @@ using (var runner = MongoRunner.Run(options)) * By default, a unique temporary data directory is used. +## Reducing the download size + +EphemeralMongo4, 5 and 6 are NuGet *metapackages* that reference dedicated runtime packages for both Linux, macOS and Windows. +As of now, there isn't a way to optimize NuGet package downloads for a specific operating system (see [#2](https://github.com/asimmon/ephemeral-mongo/issues/2)). +However, one can still avoid referencing the metapackage and directly reference the dependencies packages instead. Add MSBuild OS platform conditions and you'll get optimized NuGet imports for your OS and less downloads. + +Instead of doing this: + +```xml + +``` + +Do this: +```xml + + + + +``` + + ## Tips Avoid calling `MongoRunner.Run` concurrently, as this will create many `mongod` processes and make your operating system slower. From 0e0292247ddca213804a0a7ccf6c4ee71a57b23c Mon Sep 17 00:00:00 2001 From: Anthony Simmon Date: Wed, 22 Feb 2023 00:38:01 -0500 Subject: [PATCH 2/4] Typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0afcb14..501994a 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ using (var runner = MongoRunner.Run(options)) EphemeralMongo4, 5 and 6 are NuGet *metapackages* that reference dedicated runtime packages for both Linux, macOS and Windows. As of now, there isn't a way to optimize NuGet package downloads for a specific operating system (see [#2](https://github.com/asimmon/ephemeral-mongo/issues/2)). -However, one can still avoid referencing the metapackage and directly reference the dependencies packages instead. Add MSBuild OS platform conditions and you'll get optimized NuGet imports for your OS and less downloads. +However, one can still avoid referencing the metapackage and directly reference the dependencies instead. Add MSBuild OS platform conditions and you'll get optimized NuGet imports for your OS and less downloads. Instead of doing this: From 0097f5ba6324abe8a0a62698425d0ca27d1a4615 Mon Sep 17 00:00:00 2001 From: Anthony Simmon Date: Wed, 22 Feb 2023 00:56:51 -0500 Subject: [PATCH 3/4] Skip CI on README updates --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3874e58..344eea6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,8 +4,10 @@ on: workflow_dispatch: push: branches: [main] + paths-ignore: ["*.md"] pull_request: branches: [main] + paths-ignore: ["*.md"] jobs: pack: From c6d9c7970c58d51e643eb4c2f48175f490de2de0 Mon Sep 17 00:00:00 2001 From: Anthony Simmon Date: Wed, 22 Feb 2023 00:58:48 -0500 Subject: [PATCH 4/4] Badge now redirects to release workflow --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 501994a..9642065 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # EphemeralMongo - temporary and disposable MongoDB for integration tests and local debugging -[![build](https://img.shields.io/github/actions/workflow/status/asimmon/ephemeral-mongo/ci.yml?logo=github)](https://github.com/asimmon/ephemeral-mongo/actions/workflows/ci.yml) +[![build](https://img.shields.io/github/actions/workflow/status/asimmon/ephemeral-mongo/release.yml?logo=github)](https://github.com/asimmon/ephemeral-mongo/actions/workflows/release.yml) **EphemeralMongo** is a set of three NuGet packages wrapping the binaries of **MongoDB 4**, **5** and **6**. Each package targets **.NET Standard 2.0**, which means you can use it with **.NET Framework 4.5.2** up to **.NET 6 and later**.