Skip to content

Commit de4bd31

Browse files
committed
chore: add gapic-generator integration test presubmit
1 parent 943a979 commit de4bd31

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/gapic-generator-tests.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,28 @@ jobs:
165165
if [ "${{ matrix.python }}" == "${{ needs.python_config.outputs.latest_stable_python }}" ]; then
166166
nox -s snippetgen
167167
fi
168+
integration:
169+
needs: python_config
170+
# Only runs if the Gatekeeper passed
171+
if: ${{ needs.python_config.result == 'success' }}
172+
runs-on: ubuntu-latest
173+
container: gcr.io/gapic-images/googleapis
174+
steps:
175+
- uses: actions/checkout@v5
176+
177+
- name: Cache Bazel files
178+
id: cache-bazel
179+
uses: actions/cache@v4
180+
with:
181+
path: ~/.cache/bazel
182+
# Ensure CACHE_VERSION is defined in the mono-repo secrets!
183+
key: ${{ runner.os }}-bazel-20210105-${{ secrets.CACHE_VERSION }}
184+
restore-keys: |
185+
${{ runner.os }}-bazel-20210105-
186+
187+
- name: Run Bazel Integration Tests
188+
run: |
189+
# We need to move into the package directory if the
190+
# WORKSPACE file is located there.
191+
cd packages/gapic-generator
192+
bazelisk test //tests/integration/... --test_output=errors

0 commit comments

Comments
 (0)