Skip to content

Commit 7ae01f1

Browse files
authored
Update showcase.yaml
1 parent 8ec67d9 commit 7ae01f1

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/showcase.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,46 @@ jobs:
115115
env:
116116
BUILD_SUBDIR: sdk-platform-java
117117
JOB_TYPE: install
118+
- uses: actions/setup-go@v5
119+
with:
120+
go-version: 'stable'
121+
- name: Install protoc
122+
run: |
123+
set -e
124+
VERSION="33.2"
125+
curl -fsSL --retry 5 --retry-delay 15 -o /tmp/protoc.zip "https://github.com/protocolbuffers/protobuf/releases/download/v$VERSION/protoc-$VERSION-linux-x86_64.zip"
126+
cd /usr/local
127+
sudo unzip -o /tmp/protoc.zip
128+
protoc --version
129+
- uses: actions/setup-python@v5
130+
with:
131+
python-version: "3.12"
132+
cache: 'pip'
133+
- name: Install Librarian and tools
134+
env:
135+
PYTHONPATH: ${{ github.workspace }}/sdk-platform-java/hermetic_build/library_generation/owlbot
136+
run: |
137+
V=$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version)
138+
echo "Installing librarian version $V"
139+
go install github.com/googleapis/librarian/cmd/librarian@$V
140+
librarian install
141+
- name: Setup Java 17 for Golden Tests
142+
uses: actions/setup-java@v4
143+
with:
144+
java-version: 17
145+
distribution: temurin
118146
- name: Showcase golden tests
119147
working-directory: java-showcase
120148
run: |
121149
mvn test \
122150
-P enable-golden-tests \
123151
--batch-mode \
124152
--no-transfer-progress
153+
- name: Restore Matrix Java
154+
uses: actions/setup-java@v4
155+
with:
156+
java-version: ${{ matrix.java }}
157+
distribution: temurin
125158
- name: Parse showcase version
126159
working-directory: java-showcase/gapic-showcase
127160
run: echo "SHOWCASE_VERSION=$(mvn help:evaluate -Dexpression=gapic-showcase.version -q -DforceStdout)" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)