chore(deps): update dependency go to 1.24.x #178
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2021 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: Client Smoke Tests | |
on: | |
pull_request: | |
paths: | |
- 'proto/**' | |
- 'third_party/**' | |
- 'testdata/**' | |
- '.github/workflows/test_clients.yaml' | |
jobs: | |
dotnet: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
env: | |
DOTNET_NOLOGO: true | |
steps: | |
- name: Proto Schemas > Checkout Repository | |
uses: actions/checkout@v4 | |
- name: .NET Library > Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
repository: googleapis/google-cloudevents-dotnet | |
path: google-cloudevents-dotnet | |
- name: Setup .NET 6 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 6.0.x | |
- name: Run smoke tests | |
run: google-cloudevents-dotnet/validate-schema.sh . | |
java: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
env: | |
LIBRARY_CHECKOUT_PATH: library | |
DATA_SOURCE_CHECKOUT_PATH: google-cloudevents | |
steps: | |
- name: Java Library > Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
repository: googleapis/google-cloudevents-java | |
path: ${{ env.LIBRARY_CHECKOUT_PATH }} | |
- name: Proto Schemas > Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
path: ${{ env.DATA_SOURCE_CHECKOUT_PATH }} | |
- name: Setup Java | |
uses: actions/setup-java@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 }} | |
golang: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
env: | |
# Library & Data Source repos using side-by-side checkout. | |
LIBRARY_CHECKOUT_PATH: library # sync with defaults.run.working-directory | |
DATA_SOURCE_CHECKOUT_PATH: protos-source-repo | |
steps: | |
- name: Go Library > Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
repository: googleapis/google-cloudevents-go | |
path: ${{ env.LIBRARY_CHECKOUT_PATH }} | |
- name: Proto Schemas > Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
path: ${{ env.DATA_SOURCE_CHECKOUT_PATH }} | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.24.x | |
- name: Set Environment | |
# Validation Test execution requires absolute path to testdata. | |
run: echo "GENERATE_DATA_SOURCE=${PWD}/${DATA_SOURCE_CHECKOUT_PATH}" | tee -a $GITHUB_ENV | |
- name: Install the generator | |
run: bash tools/setup-generator.sh | |
working-directory: ${{ env.LIBRARY_CHECKOUT_PATH }} | |
- name: Run the generator | |
run: bash ./generate-code.sh | |
working-directory: ${{ env.LIBRARY_CHECKOUT_PATH }} | |
env: | |
GENERATE_PROTOC_PATH: tmp/protobuf/bin/protoc | |
GOFLAGS: "-v" | |