Skip to content

chore(main): release 0.29.3 #334

chore(main): release 0.29.3

chore(main): release 0.29.3 #334

Workflow file for this run

name: Bazel build and test
on:
push:
branches:
- $default-branch
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container: gcr.io/gapic-images/googleapis-bazel:20210105
# Dockerfile for this image is checked in on the top level of this repository.
# If you update its version, please also update it below in
# 'Cache Bazel files' - unfortunately it cannot accept variables at this
# time.
steps:
- uses: actions/checkout@v4
- name: Cache Bazel files
id: cache-bazel
uses: actions/cache@v3
with:
path: ~/.cache/bazel
key: ${{ runner.os }}-bazel-20210105-${{ secrets.CACHE_VERSION }}
- name: Cache not found
if: steps.cache-bazel.outputs.cache-hit != 'true'
run: |
echo "No cache found."
- name: Cache found
if: steps.cache-bazel.outputs.cache-hit == 'true'
run: |
echo -n "Cache found. Cache size: "
du -sh ~/.cache/bazel
echo "If the cache seems broken, update the CACHE_VERSION secret in"
echo "https://github.com/googleapis/googleapis-discovery/settings/secrets/actions"
echo "(use any random string, any GUID will work)"
echo "and it will start over with a clean cache."
echo "The old one will disappear after 7 days."
- name: Run bazel build in bazel folder
run: bazel build //bazel:build_file_generator
- name: Run generated tests
run: bazel test --test_output=errors '//bazel:*'
- name: Show test output
run: cat bazel-out/*/testlogs/bazel/build_file_generator_test/test.log
if: ${{ failure() }}