From 3b493ab98e33c1f3b45dd970034defbfcb57345b Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Fri, 17 Jan 2025 08:13:50 +0100 Subject: [PATCH] Tests: Include plugin when starting the server --- .github/workflows/build-test.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 672653c8..27ec5c99 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -36,9 +36,15 @@ jobs: run: docker compose -f "submodules/btcpayserver/BTCPayServer.Tests/docker-compose.yml" up -d dev - name: Start BTCPay run: | + cd BTCPayApp.Core + dotnet publish -c Debug -o ../BTCPayServer.Plugins.App/bin/Debug/net8.0 + cd - + cd BTCPayServer.Plugins.App + dotnet publish -c Debug -o bin/Debug/net8.0 + cd - cd submodules/btcpayserver # Start non-HTTPS to avoid certificate errors - nohup dotnet run -c Release --project BTCPayServer --launch-profile Bitcoin & + nohup dotnet run -c Debug --project BTCPayServer --launch-profile Bitcoin & while ! curl -s -k http://localhost:14142/api/v1/health > /dev/null; do echo "Waiting for BTCPay Server to start..." sleep 10 @@ -47,6 +53,7 @@ jobs: - name: Run tests env: BTCPAY_SERVER_URL: http://localhost:14142 + BTCPAY_DEBUG_PLUGINS: ../../../BTCPayServer.Plugins.App/bin/Debug/net8.0/BTCPayServer.Plugins.App.dll run: | dotnet test -c Release -v n --logger "console;verbosity=normal" BTCPayApp.Tests