From def5679b7e81641e43341948aabcb3b266907d95 Mon Sep 17 00:00:00 2001 From: Sai Sankeerth Date: Wed, 31 Jan 2024 16:25:11 +0530 Subject: [PATCH] chore: update report generation step & rename the workflow Signed-off-by: Sai Sankeerth --- ...code-coverage.yml => tests-code-coverage.yml} | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) rename .github/workflows/{code-coverage.yml => tests-code-coverage.yml} (91%) 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