-
Notifications
You must be signed in to change notification settings - Fork 3
ci: add NiCE SonarQube analysis (AB#142804) #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Lucas Ramos (ls-ramos)
merged 5 commits into
master
from
chore/AB-142804-nice-sonarqube
Aug 31, 2026
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
3d481f5
Update sonar-project.properties to NiCE naming convention (AB#142804)
ls-ramos 2298b8b
Update SonarQube workflow to NiCE convention (AB#142804)
ls-ramos 69cc044
Correct team segment in projectKey to boron (AB#142804)
ls-ramos 43050fa
Set sonar.tests so sonar.test.inclusions actually classifies test fil…
ls-ramos ee8b5a2
Skip Sonar scan on fork PRs, which never receive NICE_SONAR_TOKEN (AB…
ls-ramos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| name: "CI | SocketClient Sonar" | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ main ] | ||
| pull_request: | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
|
||
| jobs: | ||
| sonarqube: | ||
| name: "SocketClient - SonarQube Analysis" | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: SonarSource/sonarqube-scan-action@v7 | ||
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | ||
| env: | ||
| SONAR_TOKEN: ${{ secrets.NICE_SONAR_TOKEN }} | ||
| SONAR_HOST_URL: ${{ vars.NICE_SONAR_HOST_URL }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| sonar.projectKey=com.nice.cognigy-boron-SocketClient | ||
| sonar.projectName=cognigy-boron-SocketClient | ||
|
|
||
| sonar.sources=. | ||
| sonar.tests=. | ||
| sonar.sourceEncoding=UTF-8 | ||
|
|
||
| sonar.exclusions=\ | ||
| **/node_modules/**,\ | ||
| **/dist/**,\ | ||
| **/build/**,\ | ||
| **/vendor/**,\ | ||
| **/coverage/**,\ | ||
| **/*.gen.go,\ | ||
| **/*.gen.ts | ||
|
|
||
| sonar.test.inclusions=\ | ||
| **/*.test.ts,\ | ||
| **/*.spec.ts,\ | ||
| **/*_test.go,\ | ||
| **/__tests__/** | ||
|
|
||
| # Coverage (enable once CI emits reports - see https://cognigy.atlassian.net/wiki/spaces/Engineering/pages/2559967260 #3): | ||
| # sonar.go.coverage.reportPaths=... | ||
| # sonar.javascript.lcov.reportPaths=... |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.