diff --git a/.github/workflows/ci_examples_java.yml b/.github/workflows/ci_examples_java.yml index 55d4e8403..678d71c5a 100644 --- a/.github/workflows/ci_examples_java.yml +++ b/.github/workflows/ci_examples_java.yml @@ -110,10 +110,16 @@ jobs: - name: Test Examples working-directory: ./Examples + shell: bash run: | # Run simple examples gradle -p runtimes/java/DynamoDbEncryption test - gradle -p runtimes/java/DDBECwithSDKV2 test - # Run migration examples - gradle -p runtimes/java/Migration/PlaintextToAWSDBE test - gradle -p runtimes/java/Migration/DDBECv2ToAWSDBE test + # Same workflow for daily CI works for main and v3.x-Java branch so we check the branch name + if [[ "${{ inputs.branch }}" == "v3.x-Java" ]]; then + gradle -p runtimes/java/Migration/PlaintextToAWSDBE test + gradle -p runtimes/java/Migration/DDBECToAWSDBE test + else + gradle -p runtimes/java/DDBECwithSDKV2 test + gradle -p runtimes/java/Migration/PlaintextToAWSDBE test + gradle -p runtimes/java/Migration/DDBECv2ToAWSDBE test + fi