diff --git a/.github/workflows/build-pr-artifacts.yml b/.github/workflows/build-pr-artifacts.yml index 022afcd9f4..53aee59705 100644 --- a/.github/workflows/build-pr-artifacts.yml +++ b/.github/workflows/build-pr-artifacts.yml @@ -33,36 +33,3 @@ jobs: tag_name_ut="ut-$tag_name" echo "UT Tag Name: $tag_name_ut" echo "tag_name_ut=$tag_name_ut" >> $GITHUB_OUTPUT - - build-transformer-image: - name: Build Transformer Docker Image - PR - # Skip for the release pull requests as staging artifacts will be generated - # Skip main to develop sync pull requests - if: startsWith(github.event.pull_request.head.ref, 'release/') != true && startsWith(github.event.pull_request.head.ref, 'hotfix-release/') != true && github.event.pull_request.head.ref != 'main' - needs: [generate-tag-names] - uses: ./.github/workflows/build-push-docker-image.yml - with: - build_tag: rudderstack/develop-rudder-transformer:${{ needs.generate-tag-names.outputs.tag_name }} - push_tags: rudderstack/develop-rudder-transformer:${{ needs.generate-tag-names.outputs.tag_name }} - img_tag: ${{ needs.generate-tag-names.outputs.tag_name }} - dockerfile: Dockerfile - load_target: development - push_target: production - secrets: - DOCKERHUB_PROD_TOKEN: ${{ secrets.DOCKERHUB_PROD_TOKEN }} - - build-user-transformer-image: - name: Build User Transformer Docker Image - PR - # Skip for the release pull requests as staging artifacts will be generated - if: startsWith(github.event.pull_request.head.ref, 'release/') != true && startsWith(github.event.pull_request.head.ref, 'hotfix-release/') != true && github.event.pull_request.head.ref != 'main' - needs: [generate-tag-names] - uses: ./.github/workflows/build-push-docker-image.yml - with: - build_tag: rudderstack/develop-rudder-transformer:${{ needs.generate-tag-names.outputs.tag_name_ut }} - push_tags: rudderstack/develop-rudder-transformer:${{ needs.generate-tag-names.outputs.tag_name_ut }} - img_tag: ${{ needs.generate-tag-names.outputs.tag_name_ut }} - dockerfile: Dockerfile-ut-func - load_target: development - push_target: production - secrets: - DOCKERHUB_PROD_TOKEN: ${{ secrets.DOCKERHUB_PROD_TOKEN }} diff --git a/.github/workflows/build-push-docker-image.yml b/.github/workflows/build-push-docker-image.yml index c57e74c81b..79f548ff8b 100644 --- a/.github/workflows/build-push-docker-image.yml +++ b/.github/workflows/build-push-docker-image.yml @@ -23,9 +23,6 @@ on: type: string build_type: type: string - secrets: - DOCKERHUB_PROD_TOKEN: - required: true env: DOCKERHUB_USERNAME: rudderlabs diff --git a/.github/workflows/create-hotfix-branch.yml b/.github/workflows/create-hotfix-branch.yml index d1397cb608..01efb22d4b 100644 --- a/.github/workflows/create-hotfix-branch.yml +++ b/.github/workflows/create-hotfix-branch.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest # Only allow these users to create new hotfix branch from 'main' - if: github.ref == 'refs/heads/main' && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'shrouti1507' || github.actor == 'anantjain45823' || github.actor == 'chandumlg' || github.actor == 'mihir-4116') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'shrouti1507' || github.triggering_actor == 'anantjain45823' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'mihir-4116') + if: github.ref == 'refs/heads/main' steps: - name: Create Branch uses: peterjgrainger/action-create-branch@v2.4.0 diff --git a/.github/workflows/draft-new-release.yml b/.github/workflows/draft-new-release.yml index 0657561f2b..9f7eaee56e 100644 --- a/.github/workflows/draft-new-release.yml +++ b/.github/workflows/draft-new-release.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest # Only allow release stakeholders to initiate releases - if: (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/hotfix/')) && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'saikumarrs' || github.actor == 'sandeepdsvs' || github.actor == 'shrouti1507' || github.actor == 'anantjain45823' || github.actor == 'chandumlg' || github.actor == 'mihir-4116') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'sandeepdsvs' || github.triggering_actor == 'shrouti1507' || github.triggering_actor == 'anantjain45823' || github.triggering_actor == 'chandumlg' || github.triggering_actor == 'mihir-4116') + if: (github.ref == 'refs/heads/develop' steps: - name: Checkout uses: actions/checkout@v3.5.3 diff --git a/.github/workflows/prepare-for-dev-deploy.yml b/.github/workflows/prepare-for-dev-deploy.yml index d45f760c66..45106437f4 100644 --- a/.github/workflows/prepare-for-dev-deploy.yml +++ b/.github/workflows/prepare-for-dev-deploy.yml @@ -11,12 +11,6 @@ on: - develop jobs: - report-coverage: - name: Report Code Coverage - if: github.event_name == 'push' - uses: ./.github/workflows/report-code-coverage.yml - secrets: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} generate-tag-names: runs-on: ubuntu-latest @@ -43,34 +37,3 @@ jobs: echo "UT Tag Name: $tag_name_ut" echo "tag_name_ut=$tag_name_ut" >> $GITHUB_OUTPUT - build-transformer-image: - name: Build Transformer Docker Image - Dev - # Only merged pull requests must trigger - if: github.event.pull_request.merged == true - needs: [generate-tag-names] - uses: ./.github/workflows/build-push-docker-image.yml - with: - build_tag: rudderstack/develop-rudder-transformer:${{ needs.generate-tag-names.outputs.tag_name }} - push_tags: rudderstack/develop-rudder-transformer:${{ needs.generate-tag-names.outputs.tag_name }} - img_tag: ${{ needs.generate-tag-names.outputs.tag_name }} - dockerfile: Dockerfile - load_target: development - push_target: production - secrets: - DOCKERHUB_PROD_TOKEN: ${{ secrets.DOCKERHUB_PROD_TOKEN }} - - build-user-transformer-image: - name: Build User Transformer Docker Image - Dev - # Only merged pull requests must trigger - if: github.event.pull_request.merged == true - needs: [generate-tag-names] - uses: ./.github/workflows/build-push-docker-image.yml - with: - build_tag: rudderstack/develop-rudder-transformer:${{ needs.generate-tag-names.outputs.tag_name_ut }} - push_tags: rudderstack/develop-rudder-transformer:${{ needs.generate-tag-names.outputs.tag_name_ut }} - img_tag: ${{ needs.generate-tag-names.outputs.tag_name_ut }} - dockerfile: Dockerfile-ut-func - load_target: development - push_target: production - secrets: - DOCKERHUB_PROD_TOKEN: ${{ secrets.DOCKERHUB_PROD_TOKEN }} diff --git a/.github/workflows/prepare-for-prod-deploy.yml b/.github/workflows/prepare-for-prod-deploy.yml index 0a2939ac2c..d0d7ad2074 100644 --- a/.github/workflows/prepare-for-prod-deploy.yml +++ b/.github/workflows/prepare-for-prod-deploy.yml @@ -11,12 +11,6 @@ on: - main jobs: - report-coverage: - name: Report Code Coverage - if: github.event_name == 'push' - uses: ./.github/workflows/report-code-coverage.yml - secrets: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} generate-tag-names: runs-on: ubuntu-latest diff --git a/.github/workflows/prepare-for-prod-rollback.yml b/.github/workflows/prepare-for-prod-rollback.yml deleted file mode 100644 index 9ac144a21e..0000000000 --- a/.github/workflows/prepare-for-prod-rollback.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Prepare for Rollback in Production Environment - -on: - workflow_dispatch: - -jobs: - create-rollback-pr: - name: Update Helm Charts For Production and Create Pull Request - runs-on: ubuntu-latest - - # Only allow to be deployed from tags and main branch - # Only allow specific actors to trigger - if: (startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/main')) && (github.actor == 'ItsSudip' || github.actor == 'krishna2020' || github.actor == 'saikumarrs' || github.actor == 'chandumlg') && (github.triggering_actor == 'ItsSudip' || github.triggering_actor == 'krishna2020' || github.triggering_actor == 'saikumarrs' || github.triggering_actor == 'chandumlg') - - steps: - - name: Get Target Version - id: target-version - run: | - version=${{ github.ref_name }} - echo "tag_name=$version" >> $GITHUB_OUTPUT - echo "Target Version: $tag_name" - - # In order to make a commit, we need to initialize a user. - # You may choose to write something less generic here if you want, it doesn't matter functionality wise. - - name: Initialize Mandatory Git Config - run: | - git config --global user.name "GitHub Actions" - git config --global user.email "noreply@github.com" - - - name: Update Helm Charts and Raise Pull Request - env: - GITHUB_TOKEN: ${{ secrets.PAT }} - run: | - git clone https://${{secrets.PAT}}@github.com/rudderlabs/rudder-devops.git - cd rudder-devops - git checkout -b shared-transformer-rollback-${{ steps.target-version.outputs.tag_name }} - - cd helm-charts/shared-services/per-az - yq eval -i ".rudder-transformer.image.tag=\"${{ steps.target-version.outputs.tag_name }}\"" values.blue-release.yaml - yq eval -i ".user-transformer.image.tag=\"${{ steps.target-version.outputs.tag_name }}\"" values.blue-release.yaml - git add values.blue-release.yaml - - yq eval -i ".rudder-transformer.image.tag=\"${{ steps.target-version.outputs.tag_name }}\"" values.enterprise.yaml - yq eval -i ".user-transformer.image.tag=\"${{ steps.target-version.outputs.tag_name }}\"" values.enterprise.yaml - git add values.enterprise.yaml - - yq eval -i ".rudder-transformer.image.tag=\"${{ steps.target-version.outputs.tag_name }}\"" values.multi-tenant.yaml - yq eval -i ".user-transformer.image.tag=\"${{ steps.target-version.outputs.tag_name }}\"" values.multi-tenant.yaml - git add values.multi-tenant.yaml - - cd ../../config-be-rudder-transformer - yq eval -i ".config-be-rudder-transformer.image.tag=\"${{ steps.target-version.outputs.tag_name }}\"" values.prod.yaml - yq eval -i ".config-be-user-transformer.image.tag=\"${{ steps.target-version.outputs.tag_name }}\"" values.prod.yaml - git add values.prod.yaml - - git commit -m "chore: rollback shared transformers to ${{ steps.target-version.outputs.tag_name }}" - git push -u origin shared-transformer-rollback-${{ steps.target-version.outputs.tag_name }} - - gh pr create --fill diff --git a/.github/workflows/prepare-for-prod-ut-deploy.yml b/.github/workflows/prepare-for-prod-ut-deploy.yml deleted file mode 100644 index 1cb300512c..0000000000 --- a/.github/workflows/prepare-for-prod-ut-deploy.yml +++ /dev/null @@ -1,131 +0,0 @@ -name: Prepare for Production Environment Deployment - -on: - push: - branches: - - main - pull_request: - types: - - closed - branches: - - main - -jobs: - report-coverage: - name: Report Code Coverage - if: github.event_name == 'push' - uses: ./.github/workflows/report-code-coverage.yml - secrets: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - - generate-tag-names: - runs-on: ubuntu-latest - name: Generate Tag Names - # Only merged pull requests from release candidate branches must trigger - if: ((startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix-release/')) && github.event.pull_request.merged == true) - outputs: - tag_name_ut: ${{ steps.gen_tag_names.outputs.tag_name_ut }} - steps: - - name: Checkout - uses: actions/checkout@v3.5.3 - with: - fetch-depth: 1 - - - name: Generate Tag Names - id: gen_tag_names - run: | - tag_name=$(jq -r .version package.json) - echo "Tag Name: $tag_name" - echo "tag_name=$tag_name" >> $GITHUB_OUTPUT - - tag_name_ut="ut-$tag_name" - echo "UT Tag Name: $tag_name_ut" - echo "tag_name_ut=$tag_name_ut" >> $GITHUB_OUTPUT - - build-user-transformer-image: - name: Build User Transformer Docker Image - Prod - # Only merged pull requests from release candidate branches must trigger - if: ((startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix-release/')) && github.event.pull_request.merged == true) - needs: [generate-tag-names] - uses: ./.github/workflows/build-push-docker-image.yml - with: - build_tag: rudderstack/rudder-transformer:${{ needs.generate-tag-names.outputs.tag_name_ut }} - push_tags: rudderstack/rudder-transformer:${{ needs.generate-tag-names.outputs.tag_name_ut }} - img_tag: ${{ needs.generate-tag-names.outputs.tag_name_ut }} - dockerfile: Dockerfile-ut-func - load_target: development - push_target: production - build_type: ut - secrets: - DOCKERHUB_PROD_TOKEN: ${{ secrets.DOCKERHUB_PROD_TOKEN }} - - create-pull-request: - name: Update Helm Charts For Production and Create Pull Request - runs-on: ubuntu-latest - needs: [generate-tag-names, build-user-transformer-image] - env: - UT_TAG_NAME: ${{ needs.generate-tag-names.outputs.tag_name_ut }} - TF_IMAGE_REPOSITORY: rudderstack/rudder-transformer - steps: - - name: Checkout - uses: actions/checkout@v3.5.3 - with: - fetch-depth: 1 - - # In order to make a commit, we need to initialize a user. - # You may choose to write something less generic here if you want, it doesn't matter functionality wise. - - name: Initialize Mandatory Git Config - run: | - git config --global user.name "GitHub Actions" - git config --global user.email "noreply@github.com" - - - name: Print Docker Image Tags - run: | - echo "User Transformer: $UT_TAG_NAME" - - - name: Clone Devops Repo - run: | - git clone https://${{secrets.PAT}}@github.com/rudderlabs/rudder-devops.git - - - name: Extract branch name - id: extract_branch_name - run: | - cd rudder-devops - branch_name=$(git rev-parse --abbrev-ref HEAD) - echo "branch_name=$branch_name" - echo "branch_name=$branch_name" >> $GITHUB_OUTPUT - - - name: Update Helm Charts and Raise Pull Request - env: - GITHUB_TOKEN: ${{ secrets.PAT }} - run: | - cd rudder-devops - git checkout -b shared-user-transformer-$UT_TAG_NAME - - cd helm-charts/config-be-rudder-transformer - - yq eval -i ".config-be-user-transformer.image.tag=\"$UT_TAG_NAME\"" values.prod.yaml - yq eval -i ".config-be-user-transformer.image.repository=\"$TF_IMAGE_REPOSITORY\"" values.prod.yaml - git add values.prod.yaml - - git commit -m "chore: upgrade shared user-transformers to $UT_TAG_NAME" - git push -u origin shared-user-transformer-$UT_TAG_NAME - - gh pr create --fill - - - name: Update Helm Chart and Raise Pull Request For Hosted Transformer - env: - GITHUB_TOKEN: ${{ secrets.PAT }} - run: | - cd rudder-devops - git checkout -b hosted-user-transformer-$UT_TAG_NAME ${{steps.extract_branch_name.outputs.branch_name}} - - cd customer-objects/multi-tenant-us - yq eval -i ".spec.user_transformer.image.version=\"$UT_TAG_NAME\"" hostedmtedmt.yaml - yq eval -i ".spec.user_transformer.image.repository=\"$TF_IMAGE_REPOSITORY\"" hostedmtedmt.yaml - git add hostedmtedmt.yaml - - git commit -m "chore: upgrade hosted user-transformer to $UT_TAG_NAME" - git push -u origin hosted-user-transformer-$UT_TAG_NAME - - gh pr create --fill diff --git a/.github/workflows/prepare-for-staging-deploy.yml b/.github/workflows/prepare-for-staging-deploy.yml deleted file mode 100644 index 37224121bf..0000000000 --- a/.github/workflows/prepare-for-staging-deploy.yml +++ /dev/null @@ -1,124 +0,0 @@ -name: Prepare for Staging Environment Deployment - -on: - pull_request: - types: - - opened - - reopened - - synchronize - branches: - - main - -jobs: - generate-tag-names: - runs-on: ubuntu-latest - name: Generate Tag Names - # Only pull requests from release candidate branches must trigger - if: (startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix-release/')) - outputs: - tag_name: ${{ steps.gen_tag_names.outputs.tag_name }} - tag_name_ut: ${{ steps.gen_tag_names.outputs.tag_name_ut }} - steps: - - name: Checkout - uses: actions/checkout@v3.5.3 - with: - fetch-depth: 1 - - - name: Generate Tag Names - id: gen_tag_names - run: | - tag_name="staging-$(jq -r .version package.json)" - echo "Tag Name: $tag_name" - echo "tag_name=$tag_name" >> $GITHUB_OUTPUT - - tag_name_ut="ut-$tag_name" - echo "UT Tag Name: $tag_name_ut" - echo "tag_name_ut=$tag_name_ut" >> $GITHUB_OUTPUT - - build-transformer-image: - name: Build Transformer Docker Image - Staging - # Only pull requests from release candidate branches must trigger - if: (startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix-release/')) - needs: [generate-tag-names] - uses: ./.github/workflows/build-push-docker-image.yml - with: - build_tag: rudderstack/rudder-transformer:${{ needs.generate-tag-names.outputs.tag_name }} - push_tags: rudderstack/rudder-transformer:${{ needs.generate-tag-names.outputs.tag_name }} - img_tag: ${{ needs.generate-tag-names.outputs.tag_name }} - dockerfile: Dockerfile - load_target: development - push_target: production - secrets: - DOCKERHUB_PROD_TOKEN: ${{ secrets.DOCKERHUB_PROD_TOKEN }} - - build-user-transformer-image: - name: Build User Transformer Docker Image - Staging - # Only pull requests from release candidate branches must trigger - if: (startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix-release/')) - - needs: [generate-tag-names] - uses: ./.github/workflows/build-push-docker-image.yml - with: - build_tag: rudderstack/rudder-transformer:${{ needs.generate-tag-names.outputs.tag_name_ut }} - push_tags: rudderstack/rudder-transformer:${{ needs.generate-tag-names.outputs.tag_name_ut }} - img_tag: ${{ needs.generate-tag-names.outputs.tag_name_ut }} - dockerfile: Dockerfile-ut-func - load_target: development - push_target: production - secrets: - DOCKERHUB_PROD_TOKEN: ${{ secrets.DOCKERHUB_PROD_TOKEN }} - - - create-pull-request: - name: Update Helm Charts For Staging and Create Pull Request - runs-on: ubuntu-latest - needs: [generate-tag-names, build-transformer-image, build-user-transformer-image] - env: - TAG_NAME: ${{ needs.generate-tag-names.outputs.tag_name }} - UT_TAG_NAME: ${{ needs.generate-tag-names.outputs.tag_name_ut }} - steps: - - name: Checkout - uses: actions/checkout@v3.5.3 - with: - fetch-depth: 1 - - # In order to make a commit, we need to initialize a user. - # You may choose to write something less generic here if you want, it doesn't matter functionality wise. - - name: Initialize Mandatory Git Config - run: | - git config --global user.name "GitHub Actions" - git config --global user.email "noreply@github.com" - - - name: Print Docker Image Tags - run: | - echo "Transformer: $TAG_NAME" - echo "User Transformer: $UT_TAG_NAME" - - - name: Update Helm Charts and Raise Pull Request - env: - GITHUB_TOKEN: ${{ secrets.PAT }} - run: | - git clone https://${{secrets.PAT}}@github.com/rudderlabs/rudder-devops.git - cd rudder-devops - BRANCH_NAME="shared-transformer-$TAG_NAME" - echo $BRANCH_NAME - if [ `git ls-remote --heads origin $BRANCH_NAME 2>/dev/null` ] - then - echo "Staging deployment branch already exists!" - else - git checkout -b $BRANCH_NAME - - cd helm-charts/shared-services/per-az/environment/staging - yq eval -i ".rudder-transformer.image.tag=\"$TAG_NAME\"" staging.yaml - yq eval -i ".user-transformer.image.tag=\"$TAG_NAME\"" staging.yaml - git add staging.yaml - - cd ../../../../config-be-rudder-transformer - yq eval -i ".config-be-rudder-transformer.image.tag=\"$TAG_NAME\"" values.staging.yaml - yq eval -i ".config-be-user-transformer.image.tag=\"$TAG_NAME\"" values.staging.yaml - git add values.staging.yaml - - git commit -m "chore: upgrade staging env transformers to \"$TAG_NAME\"" - git push -u origin $BRANCH_NAME - gh pr create --fill - fi diff --git a/.github/workflows/publish-new-release.yml b/.github/workflows/publish-new-release.yml index e995388ce0..32c6becf58 100644 --- a/.github/workflows/publish-new-release.yml +++ b/.github/workflows/publish-new-release.yml @@ -86,37 +86,3 @@ jobs: branches: 'hotfix-release/*' env: GITHUB_TOKEN: ${{ secrets.PAT }} - - - name: Notify Slack Channel - id: slack - uses: slackapi/slack-github-action@v1.24.0 - continue-on-error: true - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - PROJECT_NAME: 'Rudder Transformer' - RELEASES_URL: 'https://github.com/rudderlabs/rudder-transformer/releases/tag/' - with: - channel-id: ${{ secrets.SLACK_RELEASE_CHANNEL_ID }} - payload: | - { - "text": "*<${{env.RELEASES_URL}}v${{ steps.extract-version.outputs.release_version }}|v${{ steps.extract-version.outputs.release_version }}>*\nCC: <@U03KG4BK1L1> <@U02AE5GMMHV> <@U01LVJ30QEB>", - "blocks": [ - { - "type": "header", - "text": { - "type": "plain_text", - "text": ":tada: ${{ env.PROJECT_NAME }} - New GitHub Release :tada:" - } - }, - { - "type": "divider" - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "*<${{env.RELEASES_URL}}v${{ steps.extract-version.outputs.release_version }}|v${{ steps.extract-version.outputs.release_version }}>*\nCC: <@U03KG4BK1L1> <@U02AE5GMMHV> <@U01LVJ30QEB>" - } - } - ] - } diff --git a/.github/workflows/report-code-coverage.yml b/.github/workflows/report-code-coverage.yml index 02fa18b134..832491aceb 100644 --- a/.github/workflows/report-code-coverage.yml +++ b/.github/workflows/report-code-coverage.yml @@ -24,40 +24,3 @@ jobs: with: node-version-file: '.nvmrc' cache: 'npm' - - - name: Install Dependencies - run: npm ci - - - name: Run Tests - run: | - npm run test:js:ci - npm run test:ts:ci - - - name: Run Lint Checks - run: | - npm run check:lint - npm run lint:fix - - - name: Upload Coverage Reports to Codecov - uses: codecov/codecov-action@v3.1.4 - with: - directory: ./reports/coverage - - - name: Upload TS Coverage Reports to Codecov - uses: codecov/codecov-action@v3.1.4 - with: - directory: ./reports/ts-coverage - - - name: Fix filesystem paths in generated reports - if: always() - run: | - sed -i 's+home/runner/work/rudder-transformer/rudder-transformer+/github/workspace+g' reports/coverage/lcov.info - sed -i 's+home/runner/work/rudder-transformer/rudder-transformer+/github/workspace+g' reports/ts-coverage/lcov.info - sed -i 's+/home/runner/work/rudder-transformer/rudder-transformer+/github/workspace+g' reports/eslint.json - - - name: SonarCloud Scan - if: always() - uses: SonarSource/sonarcloud-github-action@v2.0.0 - env: - GITHUB_TOKEN: ${{ secrets.PAT }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}