From 82d0cbe6c0e0a949a049082b046e368f64eb9d4d Mon Sep 17 00:00:00 2001 From: manuraf Date: Thu, 25 Jan 2024 17:46:54 +0100 Subject: [PATCH] module as input --- .github/workflows/call_code_review.yml | 5 ++++- .github/workflows/pr_functions.yml | 1 + .github/workflows/pr_libs.yml | 1 + .github/workflows/pr_ms.yml | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/call_code_review.yml b/.github/workflows/call_code_review.yml index ed2f520da..568a8afe2 100644 --- a/.github/workflows/call_code_review.yml +++ b/.github/workflows/call_code_review.yml @@ -4,6 +4,9 @@ on: pr_number: type: string required: true + module: + type: string + required: true source_branch: type: string required: true @@ -32,7 +35,7 @@ jobs: - name: Build and Analyze shell: bash - run: mvn --projects :test-coverage --also-make verify -Ponboarding-ms,report,coverage + run: mvn --projects :test-coverage --also-make verify -P${{ inputs.module }},report,coverage -Dsonar.organization=pagopa -Dsonar.projectKey=${{ inputs.sonar_key }} -Dsonar.token=${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/pr_functions.yml b/.github/workflows/pr_functions.yml index b5eab7262..75edf1b7c 100644 --- a/.github/workflows/pr_functions.yml +++ b/.github/workflows/pr_functions.yml @@ -30,3 +30,4 @@ jobs: source_branch: ${{ github.head_ref }} target_branch: ${{ github.base_ref }} sonar_key: 'pagopa_selfcare-onboarding' + module: 'onboarding-ms' diff --git a/.github/workflows/pr_libs.yml b/.github/workflows/pr_libs.yml index b6b1b0a77..470270c02 100644 --- a/.github/workflows/pr_libs.yml +++ b/.github/workflows/pr_libs.yml @@ -30,3 +30,4 @@ jobs: source_branch: ${{ github.head_ref }} target_branch: ${{ github.base_ref }} sonar_key: 'pagopa_selfcare-onboarding' + module: 'onboarding-sdk' diff --git a/.github/workflows/pr_ms.yml b/.github/workflows/pr_ms.yml index 960833938..ecaf9bd8c 100644 --- a/.github/workflows/pr_ms.yml +++ b/.github/workflows/pr_ms.yml @@ -29,6 +29,7 @@ jobs: source_branch: ${{ github.head_ref }} target_branch: ${{ github.base_ref }} sonar_key: 'pagopa_selfcare-onboarding' + module: 'onboarding-functions' build_docker: name: 'Build Docker image'