From 72f40ec5d339418c7e63526cac435d8cad779b24 Mon Sep 17 00:00:00 2001 From: IhateTrains Date: Sun, 3 Mar 2024 02:16:13 +0100 Subject: [PATCH] Trust dev certs on macOS --- .github/workflows/test.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f7df6381..8370329a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -56,4 +56,11 @@ jobs: - name: "Run tests" working-directory: commonItems.UnitTests - run: dotnet test + run: | + # Prevent "Interop+AppleCrypto+SslException : bad protocol version" on macOS + if [ $RUNNER_OS = 'macOS' ]; then + dotnet dev-certs https + dotnet dev-certs https --trust + fi + + dotnet test