diff --git a/.github/workflows/_test.yaml b/.github/workflows/_test.yaml index 35127ee..91feb77 100644 --- a/.github/workflows/_test.yaml +++ b/.github/workflows/_test.yaml @@ -13,6 +13,11 @@ on: default: . required: false description: Maven module + maven-profiles: + type: string + default: default + required: false + description: Comma-separated Maven profiles env: JAVA_VERSION: 17 @@ -33,4 +38,4 @@ jobs: java-version: ${{ env.JAVA_VERSION }} cache: maven - name: Test app - run: ./mvnw -ntp -B -pl ${{ inputs.module }} test + run: ./mvnw -ntp -B -pl ${{ inputs.module }} test -P ${{ inputs.maven-profiles }} diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 9efe6ac..2539a1c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -16,3 +16,5 @@ jobs: call-test-app: if: always() uses: ./.github/workflows/_test.yaml + with: + maven-profiles: openai