diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/tests-code-coverage.yml similarity index 91% rename from .github/workflows/code-coverage.yml rename to .github/workflows/tests-code-coverage.yml index f047903..50b4b3f 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/tests-code-coverage.yml @@ -1,4 +1,4 @@ -name: DT Tests +name: Tests & code coverage on: workflow_call: secrets: @@ -38,13 +38,6 @@ 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 @@ -52,6 +45,13 @@ 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/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