Skip to content

Commit

Permalink
chore: update report generation step & rename the workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Sankeerth <sanpj2292@github.com>
  • Loading branch information
Sai Sankeerth committed Jan 31, 2024
1 parent 560e9ad commit def5679
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: DT Tests
name: Tests & code coverage
on:
workflow_call:
secrets:
Expand Down Expand Up @@ -38,20 +38,20 @@ jobs:
with:
directory: ./reports/coverage

- name: Fix filesystem paths in generated reports
if: always()
run: |
sed -i 's+home/runner/work/rudderstack-shopify-tracker/rudderstack-shopify-tracker+/github/workspace+g' reports/coverage/lcov.info
sed -i 's+home/runner/work/rudderstack-shopify-tracker/rudderstack-shopify-tracker+/github/workspace+g' reports/ts-coverage/lcov.info
sed -i 's+/home/runner/work/rudderstack-shopify-tracker/rudderstack-shopify-tracker+/github/workspace+g' reports/eslint.json
- name: Update sonar-project.properties
run: |
# Retrieve the version from package.json
version=$(node -e "console.log(require('./package.json').version)")
# 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/rudderstack-shopify-tracker/rudderstack-shopify-tracker+/github/workspace+g' reports/coverage/lcov.info
sed -i 's+/home/runner/work/rudderstack-shopify-tracker/rudderstack-shopify-tracker+/github/workspace+g' reports/eslint.json
- name: SonarCloud Scan
if: always()
uses: SonarSource/sonarcloud-github-action@v2.1.1
Expand Down

0 comments on commit def5679

Please sign in to comment.