mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 13:38:01 -05:00
[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:
committed by
GitHub
parent
44b7803fcd
commit
61673d0f66
27
.github/workflows/push-triggers.yml
vendored
27
.github/workflows/push-triggers.yml
vendored
@@ -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 }}'
|
||||
|
||||
Reference in New Issue
Block a user