Skip to content

Commit 68d88ce

Browse files
committed
ci: Set up the local showcase server
1 parent a71975b commit 68d88ce

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/dependency_compatibility_test.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,36 @@ jobs:
1212
dependency-compatibility-test:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Checkout repository
15+
- name: Checkout sdk-platform-java
1616
uses: actions/checkout@v4
1717
- name: Set up JDK 21
1818
uses: actions/setup-java@v4
1919
with:
2020
java-version: '21'
2121
distribution: 'temurin'
2222
cache: maven
23+
# Set up the for the CI
2324
- name: Install sdk-platform-java's modules
2425
# gapic-generator-java requires Java 8 and is irrelevant for this CI
2526
run: mvn -q -B -ntp install --projects '!gapic-generator-java' -Dcheckstyle.skip -Dfmt.skip -DskipTests -Dclirr.skip -T 1C
27+
2628
# Run in the root module which should test for everything barring showcase
2729
- name: Perform Dependency Compatibility Testing
2830
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 -
2945
# Run for the Showcase tests
3046
- name: Perform Dependency Compatibility Testing (Showcase)
3147
run: ../.github/scripts/test_dependency_compatibility.sh dependencies.txt

0 commit comments

Comments
 (0)