Skip to content

Commit

Permalink
ci: fix dotnet test command in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
raczu committed Mar 14, 2024
1 parent 93d3cdd commit 1091c5f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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() }}

0 comments on commit 1091c5f

Please sign in to comment.