Downstream protobuf source test #5
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
on: | |
pull_request: | |
workflow_dispatch: | |
inputs: | |
protobuf_versions: | |
description: 'Comma separated list of Protobuf-Java versions (i.e. "3.25.x","4.x.y")' | |
required: true | |
schedule: | |
- cron: '0 1 * * *' # Nightly at 1am | |
name: Downstream Compatibility Nightly | |
jobs: | |
downstream-protobuf-test: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
repo: | |
- google-cloud-java | |
- java-bigtable | |
- java-bigquery | |
- java-bigquerystorage | |
- java-datastore | |
- java-firestore | |
- java-logging | |
- java-logging-logback | |
- java-pubsub | |
- java-pubsublite | |
- java-spanner-jdbc | |
- java-spanner | |
- java-storage | |
- java-storage-nio | |
# Default Protobuf-Java versions to use are specified here. Without this, the nightly workflow won't know | |
# which values to use and would resolve to ''. | |
protobuf-version: ${{ fromJSON(format('[{0}]', inputs.protobuf_versions || '"3.25.5","4.28.3"')) }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Print Protobuf-Java testing version | |
run: echo "Testing with Protobuf-Java v${{ matrix.protobuf-version }}" | |
- name: Perform downstream source compatibility testing | |
run: REPOS_UNDER_TEST="${{ matrix.repo }}" PROTOBUF_RUNTIME_VERSION="${{ matrix.protobuf-version}}" ./.kokoro/nightly/downstream-protobuf-source-compatibility.sh |