Skip to content

Commit

Permalink
fix: new try
Browse files Browse the repository at this point in the history
  • Loading branch information
jordipuigbou committed Nov 23, 2023
1 parent 4933737 commit c0ad5b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
- name: Run apis
run: make run-apis-coverage

# Execute shell command to list current folder
- name: List folder
run: ls -la apis/_output/reports

Expand All @@ -64,13 +63,13 @@ jobs:

- name: fix code coverage paths
run: |
sed 's/\/root/\/github\/workspace/g' apis/_output/reports/coverage.xml > apis/_output/reports/coverage_fixed.xml ; cat apis/_output/reports/coverage_fixed.xml > apis/_output/reports/coverage.xml; rm apis/_output/reports/coverage_fixed.xml
cp apis/_output/reports/coverage.xml /tmp/coverage_fixed.xml ;sed -i 's/\/root/\/github\/workspace/g' /tmp/coverage_fixed.xml
- name: Archive apis artifacts before clean
uses: actions/upload-artifact@v3
with:
name: apis_after
path: apis/_output/reports
path: /tmp/coverage_fixed.xml

- name: Analyze with SonarCloud

Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sonar.organization=jordipuigbou
sonar.sources=.
sonar.sourceEncoding=UTF-8
sonar.test.inclusions=apis/test.py
sonar.python.coverage.reportPaths=apis/_output/reports/coverage.xml
sonar.python.coverage.reportPaths=/tmp/coverage_fixed.xml
sonar.python.version=3
sonar.python.xunit.reportPath=apis/_output/reports/junit-apis.xml
sonar.python.xunit.skipDetails=true

0 comments on commit c0ad5b1

Please sign in to comment.