Skip to content

Commit

Permalink
chore: fix sonarqube scan (#1995)
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumarrs authored Jan 7, 2025
1 parent 0dfb893 commit c928e6e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/unit-tests-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
env:
HUSKY: 0
run: |
npm run setup:ci
npm run setup:deps
- name: Check for affected projects
id: check_affected
Expand Down Expand Up @@ -61,8 +61,8 @@ jobs:
run: |
./scripts/fix-reports-path-in-github-runner.sh
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"scripts": {
"setup": "npm i --include=optional && npm run build:package:modern",
"setup:ci": "npm ci && npm i @nx/nx-linux-x64-gnu && npm run build:package:modern",
"setup:deps": "npm ci && npm i @nx/nx-linux-x64-gnu",
"clean": "nx run-many -t clean && nx reset && git clean -xdf node_modules",
"clean:cache": "rimraf -rf ./node_modules/.cache && rimraf -rf ./.nx/cache",
"start": "nx run-many --targets=start --parallel=3 --projects=@rudderstack/analytics-js-integrations,@rudderstack/analytics-js-plugins,@rudderstack/analytics-js",
Expand Down
6 changes: 3 additions & 3 deletions scripts/fix-reports-path-in-github-runner.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
# Path variables
defaultPrefixToReplace="/github/workspace"
defaultAbsolutePathPrefix="home/runner/work/rudder-sdk-js/rudder-sdk-js"
selfHostedAbsolutePathPrefix="runner/_work/rudder-sdk-js/rudder-sdk-js"
defaultPrefixToReplace=""
defaultAbsolutePathPrefix="home/runner/work/rudder-sdk-js/rudder-sdk-js/"
selfHostedAbsolutePathPrefix="runner/_work/rudder-sdk-js/rudder-sdk-js/"
absolutePathPrefix="$selfHostedAbsolutePathPrefix"
# List of package folders
projectFolderNames=("analytics-js" "analytics-js-common" "analytics-js-integrations" "analytics-js-plugins" "analytics-js-service-worker" "analytics-v1.1" "analytics-js-cookies")
Expand Down

0 comments on commit c928e6e

Please sign in to comment.