Skip to content

Commit 0140037

Browse files
chore(ci): fix Test Examples workflow for v3.x-java daily ci (#2233)
1 parent 2668d68 commit 0140037

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/ci_examples_java.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,16 @@ jobs:
110110
111111
- name: Test Examples
112112
working-directory: ./Examples
113+
shell: bash
113114
run: |
114115
# Run simple examples
115116
gradle -p runtimes/java/DynamoDbEncryption test
116-
gradle -p runtimes/java/DDBECwithSDKV2 test
117-
# Run migration examples
118-
gradle -p runtimes/java/Migration/PlaintextToAWSDBE test
119-
gradle -p runtimes/java/Migration/DDBECv2ToAWSDBE test
117+
# Same workflow for daily CI works for main and v3.x-Java branch so we check the branch name
118+
if [[ "${{ inputs.branch }}" == "v3.x-Java" ]]; then
119+
gradle -p runtimes/java/Migration/PlaintextToAWSDBE test
120+
gradle -p runtimes/java/Migration/DDBECToAWSDBE test
121+
else
122+
gradle -p runtimes/java/DDBECwithSDKV2 test
123+
gradle -p runtimes/java/Migration/PlaintextToAWSDBE test
124+
gradle -p runtimes/java/Migration/DDBECv2ToAWSDBE test
125+
fi

0 commit comments

Comments
 (0)