mirror of
https://github.com/OpenLogics/MewtocolNet.git
synced 2025-12-06 03:01:24 +00:00
added test result saving
This commit is contained in:
17
.github/workflows/publish-pipeline.yml
vendored
17
.github/workflows/publish-pipeline.yml
vendored
@@ -51,7 +51,7 @@ jobs:
|
|||||||
ls -l
|
ls -l
|
||||||
dotnet nuget push "*.nupkg" --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/WOmed/index.json"
|
dotnet nuget push "*.nupkg" --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/WOmed/index.json"
|
||||||
|
|
||||||
- name: 'Upload artifacts to latest release'
|
- name: 'Upload package to latest release'
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
@@ -61,3 +61,18 @@ jobs:
|
|||||||
asset_name: Mewtocol.NET.${{ env.VERSION }}.nupkg
|
asset_name: Mewtocol.NET.${{ env.VERSION }}.nupkg
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
||||||
|
- name: Load cached test results
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
restore-keys: coverage-xml
|
||||||
|
|
||||||
|
- name: 'Upload coverage xml to latest release'
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
with:
|
||||||
|
upload_url: "${{ github.event.release.upload_url }}"
|
||||||
|
asset_path: '${{ github.workspace }}/MewtocolTests/coverage.opencover.xml'
|
||||||
|
asset_name: coverage.opencover.xml
|
||||||
|
asset_content_type: application/xml
|
||||||
|
|
||||||
7
.github/workflows/test-pipeline.yml
vendored
7
.github/workflows/test-pipeline.yml
vendored
@@ -48,3 +48,10 @@ jobs:
|
|||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
env:
|
env:
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
||||||
|
- name: Cache test results
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
key: coverage-xml
|
||||||
|
path: |
|
||||||
|
'${{ github.workspace }}/MewtocolTests/coverage.opencover.xml'
|
||||||
Reference in New Issue
Block a user