mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-23 15:30:34 -04:00
CI: Fixing tests results upload
This commit is contained in:
parent
6c3326e566
commit
e74ffce3af
12
.github/workflows/tests.yml
vendored
12
.github/workflows/tests.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
|||||||
dotnet build --no-restore '-p:SkipWebApp=true;SkipTranscoder=true' -p:CopyLocalLockFileAssemblies=true
|
dotnet build --no-restore '-p:SkipWebApp=true;SkipTranscoder=true' -p:CopyLocalLockFileAssemblies=true
|
||||||
cp ./src/Kyoo.Abstractions/bin/Debug/net5.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll ./tests/Kyoo.Tests/bin/Debug/net5.0/
|
cp ./src/Kyoo.Abstractions/bin/Debug/net5.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll ./tests/Kyoo.Tests/bin/Debug/net5.0/
|
||||||
- name: Test
|
- name: Test
|
||||||
run: dotnet test --no-build '-p:CollectCoverage=true;CoverletOutputFormat=opencover'
|
run: dotnet test --no-build '-p:CollectCoverage=true;CoverletOutputFormat=opencover' --logger "trx;LogFileName=TestOutputResults.xml"
|
||||||
env:
|
env:
|
||||||
POSTGRES_HOST: postgres
|
POSTGRES_HOST: postgres
|
||||||
POSTGRES_USERNAME: postgres
|
POSTGRES_USERNAME: postgres
|
||||||
@ -34,11 +34,15 @@ jobs:
|
|||||||
- name: Sanitize coverage output
|
- name: Sanitize coverage output
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
run: sed -i "s'$(pwd)'.'" tests/Kyoo.Tests/coverage.opencover.xml
|
run: sed -i "s'$(pwd)'.'" tests/Kyoo.Tests/coverage.opencover.xml
|
||||||
|
- name: Upload tests results
|
||||||
|
if: ${{ always() }}
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: results.xml
|
||||||
|
path: "**/TestOutputResults.xml"
|
||||||
- name: Upload coverage report
|
- name: Upload coverage report
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: coverage.xml
|
name: coverage.xml
|
||||||
path: |
|
path: "**/coverage.opencover.xml"
|
||||||
"**/coverage.opencover.xml"
|
|
||||||
"**/TestOutputResults.xml"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user