This repository was archived by the owner on May 14, 2026. It is now read-only.
ci: configure the protected branch #1928
This file contains hidden or 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: | |
| branches: | |
| - 2.59.x | |
| workflow_dispatch: | |
| inputs: | |
| protobuf_runtime_versions: | |
| description: >- | |
| Comma separated list of Protobuf-Java versions (i.e. | |
| "3.25.x","4.x.y"). Note: Surround each version in the list with quotes | |
| ("") | |
| required: true | |
| schedule: | |
| - cron: 0 1 * * * | |
| name: Downstream Protobuf Compatibility Check Nightly | |
| jobs: | |
| downstream-protobuf-test: | |
| if: >- | |
| github.head_ref == 'release-please--branches--main' || github.event_name | |
| == 'schedule' || github.event_name == 'workflow_dispatch' | |
| 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 | |
| protobuf-version: >- | |
| ${{ fromJSON(format('[{0}]', inputs.protobuf_runtime_versions || | |
| '"3.25.5","4.29.0"')) }} | |
| steps: | |
| - name: Checkout sdk-platform-java repo | |
| uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| java-version: 8 | |
| distribution: temurin | |
| - run: echo "JAVA8_HOME=${JAVA_HOME}" >> $GITHUB_ENV | |
| - uses: actions/setup-java@v4 | |
| with: | |
| java-version: 11 | |
| 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 | |
| - name: Perform downstream binary compatibility testing | |
| run: >- | |
| REPOS_UNDER_TEST="${{ matrix.repo }}" PROTOBUF_RUNTIME_VERSION="${{ | |
| matrix.protobuf-version }}" | |
| ./.kokoro/nightly/downstream-protobuf-binary-compatibility.sh |