Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MINOR Add a step to integrate a PR into trunk #17316

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
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
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,32 @@ jobs:
env:
GITHUB_WORKSPACE: ${{ github.workspace }}

integrate:
if: inputs.is-public-fork
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [ 21, 17, 11, 8 ]
name: Integrate with trunk, compile, and check Java ${{ matrix.java }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Gradle
uses: ./.github/actions/setup-gradle
with:
java-version: ${{ matrix.java }}
gradle-cache-read-only: true
gradle-cache-write-only: false
develocity-access-key: ${{ secrets.GE_ACCESS_TOKEN }}
- name: Merge, Compile, and validate
run: |
git fetch origin trunk
git merge origin/trunk
./gradlew --build-cache --info --no-scan check -x test

test:
needs: validate
if: ${{ ! needs.validate.outputs.is-draft }}
Expand Down
Loading