Skip to content

Commit

Permalink
Merge main into next
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 20, 2024
2 parents e931996 + db6121a commit 2e5841e
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/sonar-qube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: SonarCloud Code Analysis

on:
pull_request:
types:
- opened
- synchronize
- reopened
push:
branches:
- main
- next

jobs:
sonarqube:
name: SonarQube
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
cache: "pnpm" # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies

- run: pnpm install --frozen-lockfile

- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6 changes: 6 additions & 0 deletions demo/campaign/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,17 @@
"eslint": "^8.0.0",
"npm-run-all2": "^5.0.2",
"prettier": "^2.0.0",
<<<<<<< HEAD
"rimraf": "^3.0.2",
"tsconfig-paths": "^3.15.0",
"typescript": "^4.9.5"
},
"peerDependencies": {
"mjml": "^4.7.0"
=======
"rimraf": "^3.0.0",
"tsconfig-paths": "^3.0.0",
"typescript": "^4.0.0"
>>>>>>> main
}
}
8 changes: 8 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sonar.projectKey=vivid-planet_comet-brevo-module
sonar.organization=vivid-planet
sonar.sources=demo/,packages/
sonar.tests=packages/
sonar.test.inclusions=packages/**/__tests__/**,packages/**/*.spec.ts
sonar.exclusions=packages/**/__tests__/**,packages/**/*.spec.ts
sonar.cpd.exclusions=packages/**/__tests__/**,packages/**/*.spec.ts
sonar.typescript.tsconfigPaths=demo/*/tsconfig.json,packages/*/tsconfig.json

0 comments on commit 2e5841e

Please sign in to comment.