Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,21 @@ jobs:
name: SonarQube
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: Install deps
run: pnpm install
- name: Run tests with coverage (LCOV)
run: pnpm test:coverage
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v5
env:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@
"vitest": "^3.2.4"
},
"engines": {
"node": ">=20"
"node": ">=20",
"pnpm": ">=9"
},
"repository": {
"type": "git",
Expand Down
4 changes: 4 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
sonar.projectKey=dorixdev_react-dual-scroll-sync
sonar.organization=dorixdev
sonar.sources=lib
sonar.tests=lib
sonar.test.inclusions=**/*.{test,spec}.{ts,tsx}
sonar.javascript.lcov.reportPaths=coverage/lcov.info
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default defineConfig({
'**/lib/**/*.types.{js,ts,jsx,tsx}'
],
provider: 'v8',
reporter: ['html', 'clover', 'json', 'text', 'text-summary']
reporter: ['html', 'text', 'text-summary', 'lcov']
}
},
resolve: {
Expand Down