Skip to content

Commit 3e18472

Browse files
committed
ci: Test the ITs in the java-showcase module
1 parent 8440496 commit 3e18472

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/scripts/test_dependency_compatibility.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#!/bin/bash
22

3+
# This script generates a maven command to test unit and integration tests for
4+
# the repo. The outputted maven command will be in the rough following format
5+
# `mvn verify ... -D{dependency.name}.version={dependency.version]`. The variables
6+
# ${dependency.name} and ${dependency.version} come from the upper-bound dependencies
7+
# file called `dependencies.txt` located in the root of sdk-platform-java.
8+
#
9+
# The upper-bound dependencies file will be in the format of:
10+
# ${dependency.name}=${dependency.version}
11+
312
# Check if a filename was provided as an argument
413
if [ -z "$1" ]; then
514
echo "Usage: $0 <dependency_file>"
@@ -26,5 +35,5 @@ while IFS= read -r line; do
2635
MAVEN_COMMAND+=" -D${dependency.version}=${version}"
2736
done < "${DEPENDENCY_FILE}"
2837

29-
# Run the generated maven command
38+
# Run the generated maven command to test with the dependency versions
3039
$MAVEN_COMMAND

0 commit comments

Comments
 (0)