Skip to content

Commit

Permalink
Add Maven profiles support
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandreroman committed Mar 4, 2024
1 parent 0aa108e commit 3fcf91d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ jobs:
call-test-app:
if: always()
uses: ./.github/workflows/_test.yaml
with:
maven-profiles: openai

0 comments on commit 3fcf91d

Please sign in to comment.