Skip to content

Commit

Permalink
Merge pull request #7 from VeyronSakai/refactor-tests
Browse files Browse the repository at this point in the history
Refactor test workflow
  • Loading branch information
VeyronSakai authored Apr 7, 2024
2 parents 710a865 + 494f229 commit ce38420
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- main
pull_request:
types: [ opened, synchronize, reopened ] # Same as default

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -30,19 +29,19 @@ jobs:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Test
run: dotnet test --logger "trx;LogFileName=result.xml" --verbosity normal --results-directory "TestResults-${{ env.DOTNET_VERSION }}"
run: dotnet test --logger "trx;LogFileName=result.xml" --verbosity normal --results-directory "TestResults"

- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: dotnet-test-results-${{ env.DOTNET_VERSION }}
path: TestResults-${{ env.DOTNET_VERSION }}
name: dotnet-test-results
path: TestResults
if: ${{ always() }}

- name: Report test results
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Test Report
path: "**/TestResults-${{ env.DOTNET_VERSION }}/*.xml"
path: "**/TestResults/*.xml"
reporter: dotnet-trx

0 comments on commit ce38420

Please sign in to comment.