Skip to content

chore(main): release 0.15.0 #126

chore(main): release 0.15.0

chore(main): release 0.15.0 #126

# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Test Library Generation
on:
pull_request:
paths:
- "tools/**"
- "protoc-gen-java-snowpea/**"
- "pom.xml"
- ".github/workflows/test_generation.yaml"
jobs:
test-generator:
runs-on: ubuntu-latest
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
LIBRARY_CHECKOUT_PATH: library
DATA_SOURCE_CHECKOUT_PATH: google-cloudevents
steps:
- name: Java Library > Checkout Repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
path: ${{ env.LIBRARY_CHECKOUT_PATH }}
- name: Proto Schemas > Checkout Repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
repository: googleapis/google-cloudevents
path: ${{ env.DATA_SOURCE_CHECKOUT_PATH }}
- name: Setup Java
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4
with:
java-version: 11
distribution: temurin
- name: Setup Protoc
run: ${{ env.LIBRARY_CHECKOUT_PATH }}/tools/setup-protoc.sh
- name: Run the generator
working-directory: ${{ env.LIBRARY_CHECKOUT_PATH }}
run: ./tools/build.sh
env:
PROTOC_PATH: ${{ github.workspace }}/tmp/protobuf/bin/protoc
DATA_SOURCE_PATH: ${{ github.workspace }}/${{ env.DATA_SOURCE_CHECKOUT_PATH }}
- name: View generator output
if: ${{ always() }}
working-directory: ${{ env.LIBRARY_CHECKOUT_PATH }}
run: |
git add -N . # Needed if files are untracked
git diff --ignore-all-space --ignore-blank-lines