Skip to content

Commit

Permalink
archive lcov.info separately
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnickii committed May 27, 2024
1 parent 3e5e18c commit 502a4f1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ jobs:
- name: Fix code coverage paths
run: |
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage/lcov.info
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' testResults/junit.xml
- run: cp testResults/junit.xml coverage/${{matrix.shard}}.xml
- name: Archive coverage lcov.info
uses: actions/upload-artifact@v2 # upload coverage lcov.info
if: always() # run this step even if previous step failed
with:
name: coverage
path: coverage/lcov.info

- name: Code Coverage Summary Report
uses: irongut/CodeCoverageSummary@v1.3.0
Expand Down Expand Up @@ -93,7 +97,7 @@ jobs:
- uses: actions/download-artifact@v2
with:
name: coverage
path: coverage
path: coverage/lcov.info

- name: Run sonar cloud analysis
uses: SonarSource/sonarcloud-github-action@master
Expand Down

0 comments on commit 502a4f1

Please sign in to comment.