Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 30 additions & 30 deletions .github/workflows/hermetic_library_generation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,33 @@
# limitations under the License.
# GitHub action job to test core java library features on
# downstream client libraries before they are released.
name: Hermetic library generation upon generation config change through pull requests
on:
pull_request:

env:
REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }}
GITHUB_REPOSITORY: ${{ github.repository }}
jobs:
library_generation:
runs-on: ubuntu-latest
steps:
- name: Determine whether the pull request comes from a fork
run: |
if [[ "${GITHUB_REPOSITORY}" != "${REPO_FULL_NAME}" ]]; then
echo "This PR comes from a fork. Skip library generation."
echo "SHOULD_RUN=false" >> $GITHUB_ENV
else
echo "SHOULD_RUN=true" >> $GITHUB_ENV
fi
- uses: actions/checkout@v5
if: env.SHOULD_RUN == 'true'
with:
fetch-depth: 0
token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
- uses: googleapis/sdk-platform-java/.github/[email protected]
if: env.SHOULD_RUN == 'true'
with:
base_ref: ${{ github.base_ref }}
head_ref: ${{ github.head_ref }}
token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
#name: Hermetic library generation upon generation config change through pull requests
#on:
# pull_request:
#
#env:
# REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }}
# GITHUB_REPOSITORY: ${{ github.repository }}
#jobs:
# library_generation:
# runs-on: ubuntu-latest
# steps:
# - name: Determine whether the pull request comes from a fork
# run: |
# if [[ "${GITHUB_REPOSITORY}" != "${REPO_FULL_NAME}" ]]; then
# echo "This PR comes from a fork. Skip library generation."
# echo "SHOULD_RUN=false" >> $GITHUB_ENV
# else
# echo "SHOULD_RUN=true" >> $GITHUB_ENV
# fi
# - uses: actions/checkout@v5
# if: env.SHOULD_RUN == 'true'
# with:
# fetch-depth: 0
# token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
# - uses: googleapis/sdk-platform-java/.github/[email protected]
# if: env.SHOULD_RUN == 'true'
# with:
# base_ref: ${{ github.base_ref }}
# head_ref: ${{ github.head_ref }}
# token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }}
1 change: 1 addition & 0 deletions .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ javadoc)
integration)
mvn -B ${INTEGRATION_TEST_ARGS} \
-ntp \
-Dprotobuf.version=4.29.4 \
-Penable-integration-tests \
-DtrimStackTrace=false \
-Dclirr.skip=true \
Expand Down