@@ -43,13 +43,18 @@ jobs:
4343
4444 - name : Build and Analyze
4545 shell : bash
46- run : mvn --projects :test-coverage --also-make verify -P${{ inputs.module }},report,coverage
47- -Dsonar.organization=pagopa
48- -Dsonar.projectKey=${{ inputs.sonar_key }}
49- -Dsonar.token=${{ secrets.SONAR_TOKEN }}
50- -Dsonar.pullrequest.key=${{ inputs.pr_number }}
51- -Dsonar.pullrequest.branch=${{ inputs.source_branch }}
52- -Dsonar.pullrequest.base=refs/remotes/origin/${{ inputs.target_branch }}
5346 env :
5447 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
48+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
49+ MODULE : " ${{ inputs.module }}"
50+ SONAR_KEY : " ${{ inputs.sonar_key }}"
51+ PR_NUMBER : " ${{ inputs.pr_number }}"
52+ SOURCE_BRANCH : " ${{ inputs.source_branch }}"
53+ TARGET_BRANCH : " ${{ inputs.target_branch }}"
54+ run : mvn --projects :test-coverage --also-make verify -P"$MODULE",report,coverage
55+ -Dsonar.organization=pagopa
56+ -Dsonar.projectKey="$SONAR_KEY"
57+ -Dsonar.token="${{ secrets.SONAR_TOKEN }}"
58+ -Dsonar.pullrequest.key="$PR_NUMBER"
59+ -Dsonar.pullrequest.branch="$SOURCE_BRANCH"
60+ -Dsonar.pullrequest.base=refs/remotes/origin/"$TARGET_BRANCH"
0 commit comments