Github action can't run test-container in github action. #623
-
Hi, thanks for a great package, it makes our testing so much easier 😃. Our tests works great locally but we're having issues running them in a GitHub action using dotnet test (Xunit). We have implemented a WebApplicationFactory using the following guide [Guide] (https://www.azureblue.io/asp-net-core-integration-tests-with-test-containers-and-postgres/ ). We are using the following version of testcontainers-dotnet: 2.2.0-beta.3290165812, we have also tried using older versions with the same result (Works locally but not in GitHub Actions). This implements the IAsyncLifetime interface
We have also followed the guide from GitHub with the same result (works locally but not in GitHub Actions). This is the error message from the GitHub action:
Thanks once again, I'm very grateful for any input 😃 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I assume your project relies on |
Beta Was this translation helpful? Give feedback.
I assume your project relies on
Newtonsoft.Json
? What version do you use? Do you get some build warnings regarding incompatible dependencies? Looks like it is using a different version ofNewtonsoft.Json
. Can you pin it to13.0.1
(/fyi all tests in this repository run on GitHub Actions)?