Skip to content

Commit 823ba1c

Browse files
committed
split showcase units into own file
1 parent 86237d1 commit 823ba1c

2 files changed

Lines changed: 218 additions & 196 deletions

File tree

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

Lines changed: 0 additions & 196 deletions
Original file line numberDiff line numberDiff line change
@@ -268,202 +268,6 @@ jobs:
268268
./gradlew clean build publishToMavenLocal sourcesJar allJars
269269
popd
270270
271-
build-java8-showcase:
272-
needs: filter
273-
if: ${{ needs.filter.outputs.library == 'true' }}
274-
name: "build(8) for showcase"
275-
runs-on: ubuntu-22.04
276-
steps:
277-
- uses: actions/checkout@v4
278-
- uses: actions/setup-java@v4
279-
with:
280-
java-version: 11
281-
distribution: temurin
282-
cache: maven
283-
- name: Install all modules using Java 11
284-
shell: bash
285-
run: .kokoro/build.sh
286-
env:
287-
BUILD_SUBDIR: sdk-platform-java
288-
JOB_TYPE: install
289-
- uses: actions/setup-java@v3
290-
with:
291-
java-version: 8
292-
distribution: temurin
293-
- run: java -version
294-
- name: Parse showcase version
295-
working-directory: sdk-platform-java/java-showcase/gapic-showcase
296-
run: echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV"
297-
- name: Install showcase server
298-
run: |
299-
sudo mkdir -p /usr/src/showcase
300-
sudo chown -R ${USER} /usr/src/
301-
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
302-
cd /usr/src/showcase/
303-
tar -xf showcase-*
304-
./gapic-showcase run &
305-
cd -
306-
- name: Showcase integration tests
307-
working-directory: sdk-platform-java/java-showcase
308-
run: |
309-
mvn verify \
310-
-P enable-integration-tests \
311-
--batch-mode \
312-
--no-transfer-progress
313-
# The `slf4j1_logback` profile brings logging dependency and compiles logging tests, require env var to be set
314-
- name: Showcase integration tests - Logging SLF4J 1.x
315-
working-directory: sdk-platform-java/java-showcase
316-
run: |
317-
mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,slf4j1_logback' \
318-
--batch-mode \
319-
--no-transfer-progress
320-
# Set the Env Var for this step only
321-
env:
322-
GOOGLE_SDK_JAVA_LOGGING: true
323-
# The `disabledLogging` profile tests logging disabled when logging dependency present,
324-
# do not set env var for this step
325-
- name: Showcase integration tests - Logging disabed
326-
working-directory: sdk-platform-java/java-showcase
327-
run: |
328-
mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,disabledLogging' \
329-
--batch-mode \
330-
--no-transfer-progress
331-
- name: Showcase integration tests - Protobuf gen code 3.25.8
332-
working-directory: sdk-platform-java/java-showcase-3.25.8
333-
run: |
334-
mvn verify \
335-
-P enable-integration-tests \
336-
--batch-mode \
337-
--no-transfer-progress
338-
- name: Showcase integration tests - Protobuf gen code 3.21.0
339-
working-directory: sdk-platform-java/java-showcase-3.21.0
340-
run: |
341-
mvn verify \
342-
-P enable-integration-tests \
343-
--batch-mode \
344-
--no-transfer-progress
345-
showcase:
346-
needs: filter
347-
if: ${{ needs.filter.outputs.library == 'true' }}
348-
runs-on: ubuntu-22.04
349-
strategy:
350-
matrix:
351-
java: [ 11, 17, 21, 25 ]
352-
steps:
353-
- uses: actions/checkout@v4
354-
- uses: actions/setup-java@v4
355-
with:
356-
java-version: ${{ matrix.java }}
357-
distribution: temurin
358-
- run: mvn -version
359-
- name: Install Maven modules
360-
shell: bash
361-
run: .kokoro/build.sh
362-
env:
363-
BUILD_SUBDIR: sdk-platform-java
364-
JOB_TYPE: install
365-
- name: Showcase golden tests
366-
working-directory: sdk-platform-java/java-showcase
367-
run: |
368-
mvn test \
369-
-P enable-golden-tests \
370-
--batch-mode \
371-
--no-transfer-progress
372-
- name: Parse showcase version
373-
working-directory: sdk-platform-java/java-showcase/gapic-showcase
374-
run: echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV"
375-
- name: Install showcase server
376-
run: |
377-
sudo mkdir -p /usr/src/showcase
378-
sudo chown -R ${USER} /usr/src/
379-
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
380-
cd /usr/src/showcase/
381-
tar -xf showcase-*
382-
./gapic-showcase run &
383-
cd -
384-
- name: Showcase integration tests
385-
working-directory: sdk-platform-java/java-showcase
386-
run: |
387-
mvn verify \
388-
-P enable-integration-tests \
389-
--batch-mode \
390-
--no-transfer-progress
391-
# The `slf4j2_logback` profile brings logging dependency and compiles logging tests, require env var to be set
392-
- name: Showcase integration tests - Logging SLF4J 2.x
393-
working-directory: sdk-platform-java/java-showcase
394-
run: |
395-
mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,slf4j2_logback' \
396-
--batch-mode \
397-
--no-transfer-progress
398-
# Set the Env Var for this step only
399-
env:
400-
GOOGLE_SDK_JAVA_LOGGING: true
401-
# The `slf4j1_logback` profile brings logging dependency and compiles logging tests, require env var to be set
402-
- name: Showcase integration tests - Logging SLF4J 1.x
403-
working-directory: sdk-platform-java/java-showcase
404-
run: |
405-
mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,slf4j1_logback' \
406-
--batch-mode \
407-
--no-transfer-progress
408-
# Set the Env Var for this step only
409-
env:
410-
GOOGLE_SDK_JAVA_LOGGING: true
411-
# The `disabledLogging` profile tests logging disabled when logging dependency present,
412-
# do not set env var for this step
413-
- name: Showcase integration tests - Logging disabed
414-
working-directory: sdk-platform-java/java-showcase
415-
run: |
416-
mvn clean verify -P '!showcase,enable-integration-tests,loggingTestBase,disabledLogging' \
417-
--batch-mode \
418-
--no-transfer-progress
419-
- name: Showcase integration tests - Protobuf 3 compatibility with third party library Tensorflow
420-
working-directory: sdk-platform-java/java-showcase
421-
run: |
422-
mvn clean verify -P 'enable-integration-tests,protobuf3,showcase' \
423-
--batch-mode \
424-
--no-transfer-progress
425-
426-
showcase-clirr:
427-
needs: filter
428-
if: ${{ (needs.filter.outputs.library == 'true') && github.base_ref != '' }} # Only execute on pull_request trigger event
429-
runs-on: ubuntu-22.04
430-
steps:
431-
- name: Checkout @ target branch
432-
uses: actions/checkout@v4
433-
with:
434-
ref: ${{ github.base_ref }}
435-
- uses: actions/setup-java@v4
436-
with:
437-
java-version: 17
438-
distribution: temurin
439-
cache: maven
440-
- name: Install Maven modules
441-
shell: bash
442-
run: .kokoro/build.sh
443-
env:
444-
BUILD_SUBDIR: sdk-platform-java
445-
JOB_TYPE: install
446-
- name: Install showcase to local maven repository
447-
run: |
448-
mvn install -B -ntp -T 1C -DskipTests
449-
SHOWCASE_CLIENT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
450-
echo "SHOWCASE_CLIENT_VERSION=$SHOWCASE_CLIENT_VERSION" >> "$GITHUB_ENV"
451-
working-directory: sdk-platform-java/java-showcase
452-
- name: Checkout sdk-platform-java @ PR merge commit
453-
uses: actions/checkout@v3
454-
- name: Install sdk-platform-java @ PR merge commit
455-
shell: bash
456-
run: .kokoro/build.sh
457-
env:
458-
JOB_TYPE: install
459-
BUILD_SUBDIR: sdk-platform-java
460-
# Showcase golden test ensures that src changes are already reflected in the PR.
461-
- name: Clirr check
462-
working-directory: sdk-platform-java/java-showcase
463-
run: |
464-
mvn versions:set -B -ntp -DnewVersion=local
465-
mvn clirr:check -B -ntp -DcomparisonVersion=$SHOWCASE_CLIENT_VERSION
466-
467271
gapic-generator-java-bom:
468272
needs: filter
469273
if: ${{ needs.filter.outputs.library == 'true' }}

0 commit comments

Comments
 (0)