[INJIMOB-2886] add sonar support for inji-wallet (#1852)

Other changes include:
- add mocks for failing tests

Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
This commit is contained in:
KiruthikaJeyashankar
2025-03-11 11:34:46 +05:30
committed by GitHub
parent 44b7803fcd
commit 61673d0f66
15 changed files with 185 additions and 81 deletions

View File

@@ -39,13 +39,20 @@ jobs:
IOS_SERVICE_LOCATION: 'ios'
SCRIPT_NAME: "fastlane ios_app_build"
# sonar-check:
# if: ${{ github.event_name != 'pull_request' }}
# uses: mosip/kattu/.github/workflows/gradlew-sonar-analysis.yml@master
# with:
# SERVICE_LOCATION: '.'
# ANDROID_LOCATION: 'android'
# secrets:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# SONAR_ORGANIZATION: ${{ secrets.ORG_KEY }}
# SLACK_WEBHOOK_URL: '${{ secrets.SLACK_WEBHOOK_INJI_TEAM }}'
sonar-check-on-push:
name: Sonar check
if: ${{ github.event_name != 'pull_request' }}
needs: [build-android, build-ios]
uses: mosip/kattu/.github/workflows/npm-sonar-analysis.yml@master-java21
with:
SERVICE_LOCATION: '.'
NODE_VERSION: '16.x'
NPM_BUILD_TYPE: 'BOB'
SONAR_SOURCES: '.'
SONAR_TESTS: '.'
SONAR_TEST_INCLUSIONS: '**/*.test.ts, **/*.test.tsx'
SONAR_EXCLUSIONS: '.github/**, .vscode/**, android/**, assets/**, build/**, ios/**, node_modules/**, scripts/**, **/*.java, **/*.typegen.ts, __mocks__/**'
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
ORG_KEY: ${{ secrets.ORG_KEY }}
SLACK_WEBHOOK_URL: '${{ secrets.SLACK_WEBHOOK_INJI_TEAM }}'