Skip to content

Commit 1c07195

Browse files
committed
ci: use nested directories
1 parent c7a4b06 commit 1c07195

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/downstream_protobuf_compatibility_check_nightly.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- name: Print Protobuf-Java testing version
6464
run: echo "Testing with Protobuf-Java v${{ matrix.protobuf-version }}"
6565
- name: Perform downstream source compatibility testing
66-
run: REPOS_UNDER_TEST="${{ matrix.repo }}" PROTOBUF_RUNTIME_VERSION="${{ matrix.protobuf-version}}" REPOS_INSTALLED="true" ./.kokoro/nightly/downstream-protobuf-source-compatibility.sh
66+
run: REPOS_UNDER_TEST="${{ matrix.repo }}" PROTOBUF_RUNTIME_VERSION="${{ matrix.protobuf-version}}" REPOS_INSTALLED_LOCALLY="true" ./.kokoro/nightly/downstream-protobuf-source-compatibility.sh
6767
- name: Perform downstream binary compatibility testing
68-
run: REPOS_UNDER_TEST="${{ matrix.repo }}" PROTOBUF_RUNTIME_VERSION="${{ matrix.protobuf-version}}" REPOS_INSTALLED="true" ./.kokoro/nightly/downstream-protobuf-binary-compatibility.sh
68+
run: REPOS_UNDER_TEST="${{ matrix.repo }}" PROTOBUF_RUNTIME_VERSION="${{ matrix.protobuf-version}}" REPOS_INSTALLED_LOCALLY="true" ./.kokoro/nightly/downstream-protobuf-binary-compatibility.sh
6969

.kokoro/nightly/downstream-protobuf-binary-compatibility.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ function build_artifact_list() {
7474
}
7575

7676
for repo in ${REPOS_UNDER_TEST//,/ }; do # Split on comma
77-
if [ "${REPOS_INSTALLED}" != "true" ]; then
77+
if [ "${REPOS_INSTALLED_LOCALLY}" != "true" ]; then
7878
# Perform testing on main (with latest changes). Shallow copy as history is not important
7979
git clone "https://github.com/googleapis/${repo}.git" --depth=1
80-
pushd "${repo}"
80+
pushd "../../${repo}"
8181
# Install all repo modules to ~/.m2 (there can be multiple relevant artifacts to test i.e. core, admin, control)
8282
mvn -B -ntp install -T 1C -DskipTests -Dclirr.skip -Denforcer.skip
8383
else
84-
pushd "${repo}"
85-
curl -O "https://raw.githubusercontent.com/googleapis/${repo}/refs/heads/main/versions.txt"
84+
pushd "../../${repo}"
85+
# curl -O "https://raw.githubusercontent.com/googleapis/${repo}/refs/heads/main/versions.txt"
8686
fi
8787

8888
# The artifact_list will be a comma separate list of artifacts

0 commit comments

Comments
 (0)