Skip to content
Draft
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
3 changes: 3 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- run: "npm ci"
- run: "npm run lint"
- run: "npm run test:cover"
- uses: "SonarSource/sonarqube-scan-action@v8.2.0"
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- run: "npm run build"
- uses: "actions/upload-artifact@v7"
with:
Expand Down
10 changes: 10 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
sonar.organization=codeyourfuture
sonar.projectKey=codeyourfuture_gitbot
sonar.projectName=gitbot

sonar.sources=src
sonar.tests=src
sonar.test.exclusions=src/**/*.test.ts

sonar.coverage.exclusions=src/**/*.test.ts
sonar.javascript.lcov.reportPaths=./reports/coverage/lcov.info
1 change: 1 addition & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export default defineConfig({
test: {
coverage: {
include: ["src/**"],
reporter: ["html", "lcovonly", "text"],
reportsDirectory: "reports/coverage",
},
globals: true,
Expand Down
Loading