Skip to content

Commit

Permalink
chore: add sonar-project.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
koladilip committed Jan 29, 2024
1 parent 3a5156e commit dd6bdda
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./reports/coverage

- name: Update sonar-project.properties
run: |
Expand All @@ -34,6 +35,12 @@ jobs:
# Update the sonar-project.properties file with the version
sed -i "s/sonar.projectVersion=.*$/sonar.projectVersion=$version/" sonar-project.properties
- name: Fix filesystem paths in generated reports
if: always()
run: |
sed -i 's+home/runner/work/rudder-workflow-engine/rudder-workflow-engine+/github/workspace+g' reports/coverage/lcov.info
sed -i 's+/home/runner/work/rudder-workflow-engine/rudder-workflow-engine+/github/workspace+g' reports/eslint.json
- name: SonarCloud Scan
if: always()
uses: SonarSource/[email protected]
Expand Down

0 comments on commit dd6bdda

Please sign in to comment.