Skip to content

Commit

Permalink
ci: add solver enterprise repo
Browse files Browse the repository at this point in the history
  • Loading branch information
zepfred committed Jun 19, 2024
1 parent 3354791 commit 3299231
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/pull_request_long_running.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
- name: Test timefold-quickstarts (native tests)
working-directory: ./timefold-quickstarts/${{matrix.module}}
run: mvn -B -Dnative -Pnative verify

build-enterprise-quarkus:
concurrency:
group: pull_request_enterprise_long_running-${{ github.event_name }}-${{ github.head_ref }}-${{ matrix.module }}-${{ matrix.java-version }}
Expand Down Expand Up @@ -121,6 +122,27 @@ jobs:
shell: bash
working-directory: ./timefold-solver
run: .github/scripts/prevent_stale_fork.sh
# Clone timefold-solver-enterprise
# Need to check for stale repo, since Github is not aware of the build chain and therefore doesn't automate it.
- name: Checkout timefold-solver-enterprise (PR) # Checkout the PR branch first, if it exists
id: checkout-solver-enterprise
uses: actions/checkout@v4
continue-on-error: true
with:
repository: TimefoldAI/timefold-solver-enterprise
ref: ${{ github.head_ref }}
token: ${{ secrets.JRELEASER_GITHUB_TOKEN }} # Safe; only used to clone the repo and not stored in the fork.
path: ./timefold-solver-enterprise
fetch-depth: 0 # Otherwise merge will fail on account of not having history.
- name: Checkout timefold-solver-enterprise (main) # Checkout the main branch if the PR branch does not exist
if: steps.checkout-solver-enterprise.outcome != 'success'
uses: actions/checkout@v4
with:
repository: TimefoldAI/timefold-solver-enterprise
ref: main
token: ${{ secrets.JRELEASER_GITHUB_TOKEN }} # Safe; only used to clone the repo and not stored in the fork.
path: ./timefold-solver-enterprise
fetch-depth: 0 # Otherwise merge will fail on account of not having history.

# Clone timefold-quickstarts
# No need to check for stale repo, as Github merges the main repo into the fork automatically.
Expand All @@ -141,10 +163,14 @@ jobs:

- name: Quickly build timefold-solver
working-directory: ./timefold-solver
run: mvn -B -Dquickly clean install
run: mvn -B -Dquickly -DskipTests clean install
- name: Quickly build timefold-solver-enterprise
working-directory: ./timefold-solver-enterprise
run: mvn -B -Dquickly -DskipTests clean install
- name: Test timefold-enterprise-quickstarts (enterprise native tests)
working-directory: ./timefold-quickstarts/${{matrix.module}}
run: mvn -B -Dnative -Denterprise -Pnative verify

build-spring-boot:
concurrency:
group: pull_request_long_running-${{ github.event_name }}-${{ github.head_ref }}-${{ matrix.module }}-${{ matrix.java-version }}
Expand Down

0 comments on commit 3299231

Please sign in to comment.