Skip to content

Commit

Permalink
ci: Add Java Smoke Tests (#477)
Browse files Browse the repository at this point in the history
* ci: Add Java Smoke Tests

* debug

* fix checkout

* Update to match child

* Remove test branch
  • Loading branch information
averikitsch authored Jan 25, 2023
1 parent bc4b8f0 commit 18e36b2
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions .github/workflows/test_clients.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,52 @@ jobs:
env:
DOTNET_NOLOGO: true
steps:
- name: Check out repo
- name: Proto Schemas > Checkout Repository
uses: actions/checkout@v3

- name: Check out google-cloudevents-dotnet
- name: .NET Library > Checkout Repository
uses: actions/checkout@v3
with:
repository: googleapis/google-cloudevents-dotnet
path: google-cloudevents-dotnet

- name: Setup .NET 6
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Run smoke tests
run: google-cloudevents-dotnet/validate-schema.sh .

java:
runs-on: ubuntu-latest
env:
LIBRARY_CHECKOUT_PATH: library
DATA_SOURCE_CHECKOUT_PATH: google-cloudevents
steps:
- name: Java Library > Checkout Repository
uses: actions/checkout@v3
with:
repository: googleapis/google-cloudevents-java
path: ${{ env.LIBRARY_CHECKOUT_PATH }}

- name: Proto Schemas > Checkout Repository
uses: actions/checkout@v3
with:
path: ${{ env.DATA_SOURCE_CHECKOUT_PATH }}

- name: Setup Java
uses: actions/setup-java@v3
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 }}

0 comments on commit 18e36b2

Please sign in to comment.