chore: migrate java-shared-config to monorepo #16
Workflow file for this run
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: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| # Keeping this file separate as the dependencies check would use more | |
| # repositories than needed this downstream check for GraalVM native image and | |
| # other Maven plugins. | |
| name: java-shared-config downstream | |
| env: | |
| BUILD_SUBDIR: java-shared-config | |
| jobs: | |
| filter: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| library: ${{ steps.filter.outputs.library }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| filters: | | |
| library: | |
| - 'java-shared-config/**' | |
| build: | |
| needs: filter | |
| if: ${{ needs.filter.outputs.library == 'true' }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| java: [8, 11] | |
| repo: | |
| - java-bigquery | |
| - java-bigtable | |
| job-type: | |
| - test # maven-surefire-plugin | |
| - clirr # clirr-maven-plugin | |
| - javadoc # maven-javadoc-plugin | |
| - javadoc-with-doclet # test javadoc generation with doclet | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: zulu | |
| java-version: 11 | |
| - name: Install java-shared-dependencies | |
| run: | | |
| mvn install -pl sdk-platform-java/java-shared-dependencies,sdk-platform-java/java-shared-dependencies/first-party-dependencies,sdk-platform-java/java-shared-dependencies/third-party-dependencies -am -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V -q | |
| - name: Pre-build dependencies | |
| run: | | |
| LIB_DIR="${{matrix.repo}}" | |
| LIB_NAME="google-cloud-${LIB_DIR#java-}" | |
| mvn install -pl ${LIB_DIR}/${LIB_NAME} -am -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V -q | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: zulu | |
| java-version: ${{matrix.java}} | |
| - run: java -version | |
| - run: sudo apt-get update -y | |
| - run: sudo apt-get install libxml2-utils | |
| - run: .kokoro/client-library-check.sh ${{matrix.repo}} ${{matrix.job-type}} | |
| lint: | |
| needs: filter | |
| if: ${{ needs.filter.outputs.library == 'true' }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| java: [17, 21] | |
| repo: | |
| - java-bigquery | |
| - java-bigtable | |
| job-type: | |
| - lint # fmt-maven-plugin and google-java-format | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: zulu | |
| java-version: ${{matrix.java}} | |
| - run: java -version | |
| - run: sudo apt-get update -y | |
| - run: sudo apt-get install libxml2-utils | |
| - name: Install java-shared-dependencies | |
| run: | | |
| mvn install -pl sdk-platform-java/java-shared-dependencies,sdk-platform-java/java-shared-dependencies/first-party-dependencies,sdk-platform-java/java-shared-dependencies/third-party-dependencies -am -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V -q | |
| - name: Pre-build dependencies | |
| run: | | |
| LIB_DIR="${{matrix.repo}}" | |
| LIB_NAME="google-cloud-${LIB_DIR#java-}" | |
| mvn install -pl ${LIB_DIR}/${LIB_NAME} -am -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V -q | |
| - run: .kokoro/client-library-check.sh ${{matrix.repo}} ${{matrix.job-type}} | |
| javadoc-with-doclet: | |
| needs: filter | |
| if: ${{ needs.filter.outputs.library == 'true' }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| repo: | |
| - java-bigtable | |
| - java-bigquery | |
| - java-storage | |
| - java-storage-nio | |
| - java-spanner | |
| - java-spanner-jdbc | |
| - java-pubsub | |
| - java-pubsublite | |
| - java-logging | |
| - java-logging-logback | |
| - java-firestore | |
| - java-datastore | |
| - java-bigquerystorage | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| - run: java -version | |
| - run: sudo apt-get update -y | |
| - run: sudo apt-get install libxml2-utils | |
| - name: Install java-shared-dependencies | |
| run: | | |
| mvn install -pl sdk-platform-java/java-shared-dependencies,sdk-platform-java/java-shared-dependencies/first-party-dependencies,sdk-platform-java/java-shared-dependencies/third-party-dependencies -am -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V -q | |
| - name: Pre-build dependencies | |
| run: | | |
| LIB_DIR="${{matrix.repo}}" | |
| LIB_NAME="google-cloud-${LIB_DIR#java-}" | |
| mvn install -pl ${LIB_DIR}/${LIB_NAME} -am -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V -q | |
| - run: .kokoro/client-library-check-doclet.sh ${{matrix.repo}} |