From cc1cd50ef9791a8d3df4969d51a53afafb69efa9 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Sat, 27 Apr 2024 13:58:47 -0500 Subject: [PATCH] Try to get tests to actually run --- .github/workflows/dotnet.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index f60fc77..2537c28 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -28,15 +28,15 @@ jobs: id: stepid with: dotnet-version: ${{ matrix.dotnet.version }} - if: endsWith(matrix['dotnet']['tfm'], '.0') # only for .NET core + if: endsWith(matrix.dotnet.tfm, '.0') # only for .NET core # By default, tests will be executed under the latest installed version! - name: Create temporary global.json - if: endsWith(matrix['dotnet']['tfm'], '.0') # only for .NET core + if: endsWith(matrix.dotnet.tfm, '.0') # only for .NET core run: echo '{"sdk":{"version":"${{steps.stepid.outputs.dotnet-version}}"}}' > ./global.json - name: Restore packages run: dotnet restore UrlBase64/UrlBase64.csproj -p:Configuration=Release -p:TargetFrameworks="${{ matrix.dotnet.tfm }}" -p:LangVersion="latest" --verbosity normal - name: Build solution run: dotnet build UrlBase64/UrlBase64.csproj -p:Configuration=Release -p:TargetFrameworks="${{ matrix.dotnet.tfm }}" -p:LangVersion="latest" --verbosity normal - name: Run tests - run: dotnet test -p:Configuration=Release --no-build --verbosity normal -p:TargetFrameworks="${{ matrix.dotnet.tfm }}" -p:LangVersion="latest" + run: dotnet test -p:Configuration=Release --verbosity normal -p:TargetFrameworks="${{ matrix.dotnet.tfm }}" -p:LangVersion="latest" if: endsWith(matrix.dotnet.tfm, '.0') # only for .NET core