Publish test results (#21)
* Added step to publish test results * Changed upload step to use wildcard * Added quotes * Changed directory to relative path * Fixed upload step * Added step to publish test results * Added permissionspull/85/head
parent
47bf91aee2
commit
7d7de23a6b
|
|
@ -6,6 +6,9 @@ jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
checks: write
|
||||||
|
pull-requests: write
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: ./src/dotnet
|
working-directory: ./src/dotnet
|
||||||
|
|
@ -32,4 +35,15 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: dotnet build --no-restore --configuration Release
|
run: dotnet build --no-restore --configuration Release
|
||||||
- name: Test
|
- name: Test
|
||||||
run: dotnet test --no-build --verbosity normal --configuration Release
|
run: dotnet test --no-build --verbosity normal --configuration Release --logger trx --results-directory TestResults
|
||||||
|
- name: Upload test results
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: dotnet-results
|
||||||
|
path: ./src/dotnet/TestResults
|
||||||
|
if: ${{ always() }}
|
||||||
|
- name: Publish test results
|
||||||
|
uses: EnricoMi/publish-unit-test-result-action@v2
|
||||||
|
with:
|
||||||
|
files: ./src/dotnet/TestResults/*.trx
|
||||||
|
if: ${{ always() }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue