@@ -12,20 +12,36 @@ jobs:
12
12
dependency-compatibility-test :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - name : Checkout repository
15
+ - name : Checkout sdk-platform-java
16
16
uses : actions/checkout@v4
17
17
- name : Set up JDK 21
18
18
uses : actions/setup-java@v4
19
19
with :
20
20
java-version : ' 21'
21
21
distribution : ' temurin'
22
22
cache : maven
23
+ # Set up the for the CI
23
24
- name : Install sdk-platform-java's modules
24
25
# gapic-generator-java requires Java 8 and is irrelevant for this CI
25
26
run : mvn -q -B -ntp install --projects '!gapic-generator-java' -Dcheckstyle.skip -Dfmt.skip -DskipTests -Dclirr.skip -T 1C
27
+
26
28
# Run in the root module which should test for everything barring showcase
27
29
- name : Perform Dependency Compatibility Testing
28
30
run : ./.github/scripts/test_dependency_compatibility.sh dependencies.txt
31
+
32
+ # Set up local showcase server
33
+ - name : Parse showcase version
34
+ working-directory : java-showcase/gapic-showcase
35
+ run : echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV"
36
+ - name : Install showcase server
37
+ run : |
38
+ sudo mkdir -p /usr/src/showcase
39
+ sudo chown -R ${USER} /usr/src/
40
+ 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
41
+ cd /usr/src/showcase/
42
+ tar -xf showcase-*
43
+ ./gapic-showcase run &
44
+ cd -
29
45
# Run for the Showcase tests
30
46
- name : Perform Dependency Compatibility Testing (Showcase)
31
47
run : ../.github/scripts/test_dependency_compatibility.sh dependencies.txt
0 commit comments