Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: bump codecov/codecov-action from 3 to 4 #2

Merged
merged 6 commits into from
Jul 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .github/workflows/build-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,24 @@ jobs:
env:
CovResultsPath: "${{ runner.temp }}\\cov_results\\cov.xml"
TestResultsPath: "${{ runner.temp }}\\results"
# Note: Need to move coverage file due to ongoing bugs with finding coverage files names differently than
# tool defaults and put under folders away from working directory in codecov v4
# code based on https://devblogs.microsoft.com/powershell-community/determine-if-a-folder-exists/
- name: Move coverage file for upload
if: success() || failure()
run: |-
$dest = "${{ github.workspace }}\TestResults"
if (-Not (Test-Path -Path $dest)) {
New-Item -ItemType "directory" -Path $dest
}
Move-Item -Path "${{ runner.temp }}\cov_results\cov.xml" -Destination "$dest\coverage.xml"
shell: pwsh
- name: Upload Coverage
if: success() || failure()
# Keep to v3 until issues revolving around coverage files not being found are resolved
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
# Hard copy from step above due to https://github.com/actions/runner/issues/2204
directory: ${{ runner.temp }}/cov_results
files: cov.xml
directory: ${{ github.workspace }}/TestResults
files: coverage.xml
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
Loading