Skip to content

Commit

Permalink
Fixed caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandoun committed Jun 16, 2023
1 parent 5adadbf commit 0702ab7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ jobs:
- name: Load cached test results
uses: actions/cache/restore@v3
with:
key: coverage-xml
key: coverage-data
path: |
'${{ github.workspace }}/MewtocolTests/coverage.opencover.xml'
'${{ github.workspace }}/MewtocolTests/TestResults/coverage.opencover.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_path: '${{ github.workspace }}/MewtocolTests/TestResults/coverage.opencover.xml'
asset_name: coverage.opencover.xml
asset_content_type: application/xml

6 changes: 3 additions & 3 deletions .github/workflows/test-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: 'Run tests'
run: |
cd '${{ github.workspace }}/MewtocolTests'
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=./TestResults/
#Upload to codecov
- name: Upload coverage reports to Codecov
Expand All @@ -52,6 +52,6 @@ jobs:
- name: Cache test results
uses: actions/cache/save@v3
with:
key: coverage-xml
key: coverage-data
path: |
'${{ github.workspace }}/MewtocolTests/coverage.opencover.xml'
'${{ github.workspace }}/MewtocolTests/TestResults/'

0 comments on commit 0702ab7

Please sign in to comment.