Skip to content

Commit dea45de

Browse files
authored
build: add missing install step to Java 8 CI job (#12852)
The build-java8-except-gapic-generator-java job was missing a step to install dependencies, which caused it to fail when resolving unpublished artifacts from the monorepo. This commit adds the step to install all modules using Java 17 before running the tests. Fixes #12842
1 parent 351c57a commit dea45de

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/sdk-platform-java-ci.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,13 @@ jobs:
180180
with:
181181
java-version: 17
182182
distribution: temurin
183-
- name: Compile with Java 17 and run tests with Java 8
183+
- name: Install all modules using Java 17
184+
shell: bash
185+
run: .kokoro/build.sh
186+
env:
187+
BUILD_SUBDIR: sdk-platform-java
188+
JOB_TYPE: install
189+
- name: Run tests with Java 8
184190
shell: bash
185191
run: |
186192
set -x
@@ -192,7 +198,7 @@ jobs:
192198
-Djvm="${JAVA8_HOME}/bin/java"
193199
working-directory: sdk-platform-java
194200
# The `envVarTest` profile runs tests that require an environment variable
195-
- name: Compile with Java 17 and run tests with Java 8 (Env Var Tests)
201+
- name: Run tests with Java 8 (Env Var Tests)
196202
shell: bash
197203
run: |
198204
set -x

0 commit comments

Comments
 (0)