From 1091c5fe3d4a06579a8c673e9e3fd25844f9a371 Mon Sep 17 00:00:00 2001 From: raczu Date: Thu, 14 Mar 2024 20:51:32 +0100 Subject: [PATCH] ci: fix dotnet test command in workflow --- .github/workflows/unit-tests.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index a1319446..4f58d69f 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -19,16 +19,12 @@ jobs: run: dotnet restore ${{ env.SOLUTION_FILE }} - name: Test with dotnet - run: | - dotnet test ${{ env.SOLUTION_FILE }} \ - --logger trx \ - --logger html \ - --results-directory "TestResults-${{ github.ref }}" + run: dotnet test ${{ env.SOLUTION_FILE }} --logger trx --logger html --results-directory "TestResults-${{ github.sha }}" - name: Upload dotnet test results uses: actions/upload-artifact@v4 with: - name: dotnet-results-${{ github.ref }} - path: TestResults-${{ github.ref }} + name: dotnet-results-${{ github.sha }} + path: TestResults-${{ github.sha }} retention-days: 14 if: ${{ always() }} \ No newline at end of file