Skip to content

Commit b864fcd

Browse files
authored
chore: require Java 17 CI check (GoogleCloudPlatform#7097)
* chore: require Java 17 CI check * add repo to safe directories
1 parent 99a76e6 commit b864fcd

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/sync-repo-settings.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ branchProtectionRules:
77
requiredStatusCheckContexts:
88
- 'Kokoro CI - Java 11'
99
- 'Kokoro CI - Java 8'
10+
- 'Kokoro CI - Java 17'
1011
- 'Kokoro CI - Lint'
1112
- 'cla/google'
1213
requiredApprovingReviewCount: 1

.kokoro/tests/run_tests.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ if [[ "$SCRIPT_DEBUG" != "true" ]]; then
4545
# Update `gcloud` and log versioning for debugging
4646
apt update && apt -y upgrade google-cloud-sdk
4747

48+
echo "********** GIT INFO ***********"
49+
git version
4850
echo "********** GCLOUD INFO ***********"
4951
gcloud -v
5052
echo "********** MAVEN INFO ***********"
@@ -115,6 +117,8 @@ fi
115117
echo -e "\n******************** TESTING PROJECTS ********************"
116118
test_prog="$PWD/.kokoro/tests/run_test_java.sh"
117119

120+
git config --global --add safe.directory $PWD
121+
118122
# Use btlr to run all the tests in each folder
119123
echo "btlr" "${btlr_args[@]}" -- "${test_prog}"
120124
btlr "${btlr_args[@]}" -- "${test_prog}"

0 commit comments

Comments
 (0)