diff --git a/.github/workflows/publish-pipeline.yml b/.github/workflows/publish-pipeline.yml index 4c781d7..ca87474 100644 --- a/.github/workflows/publish-pipeline.yml +++ b/.github/workflows/publish-pipeline.yml @@ -64,9 +64,9 @@ 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 @@ -74,7 +74,7 @@ jobs: 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 \ No newline at end of file diff --git a/.github/workflows/test-pipeline.yml b/.github/workflows/test-pipeline.yml index 1bb315e..f81bb15 100644 --- a/.github/workflows/test-pipeline.yml +++ b/.github/workflows/test-pipeline.yml @@ -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 @@ -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' \ No newline at end of file + '${{ github.workspace }}/MewtocolTests/TestResults/' \ No newline at end of file