@@ -213,11 +213,84 @@ jobs:
213213 # testlib modules of gax
214214 run : mvn package clirr:check -DskipTests -Dfmt.skip
215215
216+ build-java8-showcase :
217+ name : " build(8) for showcase"
218+ runs-on : ubuntu-22.04
219+ steps :
220+ - uses : actions/checkout@v4
221+ - uses : actions/setup-java@v4
222+ with :
223+ java-version : 11
224+ distribution : temurin
225+ cache : maven
226+ - name : Install all modules using Java 11
227+ shell : bash
228+ run : |
229+ mvn install -B -ntp -DskipTests -Dclirr.skip -Dcheckstyle.skip -Dfmt.skip
230+ - uses : actions/setup-java@v3
231+ with :
232+ java-version : 8
233+ distribution : temurin
234+ - run : java -version
235+ - name : Showcase golden tests
236+ working-directory : java-showcase
237+ run : |
238+ mvn test \
239+ -P enable-golden-tests \
240+ --batch-mode \
241+ --no-transfer-progress
242+ - name : Parse showcase version
243+ working-directory : java-showcase/gapic-showcase
244+ run : echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV"
245+ - name : Install showcase server
246+ run : |
247+ sudo mkdir -p /usr/src/showcase
248+ sudo chown -R ${USER} /usr/src/
249+ curl --location https://github.com/googleapis/gapic-showcase/releases/download/v${{env.SHOWCASE_VERSION}}/gapic-showcase-${{env.SHOWCASE_VERSION}}-linux-amd64.tar.gz --output /usr/src/showcase/showcase-${{env.SHOWCASE_VERSION}}-linux-amd64.tar.gz
250+ cd /usr/src/showcase/
251+ tar -xf showcase-*
252+ ./gapic-showcase run &
253+ cd -
254+ - name : Showcase integration tests
255+ working-directory : java-showcase
256+ run : |
257+ mvn verify \
258+ -P enable-integration-tests \
259+ --batch-mode \
260+ --no-transfer-progress
261+ # The `slf4j2_logback` profile brings logging dependency and compiles logging tests, require env var to be set
262+ - name : Showcase integration tests - Logging SLF4J 2.x
263+ working-directory : java-showcase
264+ run : |
265+ mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,slf4j2_logback' \
266+ --batch-mode \
267+ --no-transfer-progress
268+ # Set the Env Var for this step only
269+ env :
270+ GOOGLE_SDK_JAVA_LOGGING : true
271+ # The `slf4j1_logback` profile brings logging dependency and compiles logging tests, require env var to be set
272+ - name : Showcase integration tests - Logging SLF4J 1.x
273+ working-directory : java-showcase
274+ run : |
275+ mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,slf4j1_logback' \
276+ --batch-mode \
277+ --no-transfer-progress
278+ # Set the Env Var for this step only
279+ env :
280+ GOOGLE_SDK_JAVA_LOGGING : true
281+ # The `disabledLogging` profile tests logging disabled when logging dependency present,
282+ # do not set env var for this step
283+ - name : Showcase integration tests - Logging disabed
284+ working-directory : java-showcase
285+ run : |
286+ mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,disabledLogging' \
287+ --batch-mode \
288+ --no-transfer-progress
216289 showcase :
217290 runs-on : ubuntu-22.04
218291 strategy :
219292 matrix :
220- java : [ 8, 11, 17, 21, 23 ]
293+ java : [ 11, 17, 21, 23 ]
221294 steps :
222295 - uses : actions/checkout@v4
223296 - uses : actions/setup-java@v4
0 commit comments