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
29 changes: 29 additions & 0 deletions .github/workflows/sonarqube.yml
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
Comment thread
ls-ramos marked this conversation as resolved.
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 }}
25 changes: 25 additions & 0 deletions sonar-project.properties
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=...
Loading