Skip to content

Commit 0702ab7

Browse files
committed
Fixed caching
1 parent 5adadbf commit 0702ab7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/publish-pipeline.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,17 @@ jobs:
6464
- name: Load cached test results
6565
uses: actions/cache/restore@v3
6666
with:
67-
key: coverage-xml
67+
key: coverage-data
6868
path: |
69-
'${{ github.workspace }}/MewtocolTests/coverage.opencover.xml'
69+
'${{ github.workspace }}/MewtocolTests/TestResults/coverage.opencover.xml'
7070
7171
- name: 'Upload coverage xml to latest release'
7272
uses: actions/upload-release-asset@v1
7373
env:
7474
GITHUB_TOKEN: ${{ github.token }}
7575
with:
7676
upload_url: "${{ github.event.release.upload_url }}"
77-
asset_path: '${{ github.workspace }}/MewtocolTests/coverage.opencover.xml'
77+
asset_path: '${{ github.workspace }}/MewtocolTests/TestResults/coverage.opencover.xml'
7878
asset_name: coverage.opencover.xml
7979
asset_content_type: application/xml
8080

.github/workflows/test-pipeline.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: 'Run tests'
4242
run: |
4343
cd '${{ github.workspace }}/MewtocolTests'
44-
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
44+
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=./TestResults/
4545
4646
#Upload to codecov
4747
- name: Upload coverage reports to Codecov
@@ -52,6 +52,6 @@ jobs:
5252
- name: Cache test results
5353
uses: actions/cache/save@v3
5454
with:
55-
key: coverage-xml
55+
key: coverage-data
5656
path: |
57-
'${{ github.workspace }}/MewtocolTests/coverage.opencover.xml'
57+
'${{ github.workspace }}/MewtocolTests/TestResults/'

0 commit comments

Comments
 (0)