chore: removing Nurse Rostering code #98
Workflow file for this run
This file contains 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
name: Downstream - Integration Tests | |
on: | |
# Enables the workflow to run on PRs from forks; | |
# token sharing is safe here, because enterprise is a private repo and therefore fully under our control. | |
pull_request_target: | |
branches: [main] # Benchmarks aren't branched, so they will only ever work against current main. | |
types: | |
- opened | |
- reopened | |
- synchronize | |
paths-ignore: | |
- 'LICENSE*' | |
- '.gitignore' | |
- '**.md' | |
- '**.adoc' | |
- '*.txt' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: pr-${{ github.event_name }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
timeout-minutes: 120 | |
steps: | |
# Clone timefold-solver | |
# No need to check for stale repo, as Github merges the main repo into the fork automatically. | |
- name: Checkout timefold-solver | |
uses: actions/checkout@v4 | |
with: | |
path: ./timefold-solver | |
ref: ${{ github.event.pull_request.head.sha }} # The GHA event will pull the main branch by default, and we must specify the PR reference version | |
- name: Setup Temurin 21 and Maven | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Quickly build timefold-solver | |
working-directory: ./timefold-solver | |
shell: bash | |
run: mvn -B -Dquickly clean install | |
# Clone timefold-solver-enterprise | |
- 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. | |
- name: Quickly build timefold-solver-enterprise | |
working-directory: ./timefold-solver-enterprise | |
shell: bash | |
run: mvn -B -Dquickly clean install | |
# Clone timefold-solver-benchmarks | |
- name: Checkout timefold-solver-benchmarks (PR) # Checkout the PR branch first, if it exists | |
if: github.head_ref # Only true if this is a PR. | |
id: checkout-solver-benchmarks-pr | |
uses: actions/checkout@v4 | |
continue-on-error: true | |
with: | |
repository: TimefoldAI/timefold-solver-benchmarks | |
ref: ${{ github.head_ref }} | |
path: ./timefold-solver-benchmarks | |
fetch-depth: 0 # Otherwise merge will fail on account of not having history. | |
- name: Checkout timefold-solver-benchmarks (main) # Checkout the main branch if the PR branch does not exist | |
if: ${{ steps.checkout-solver-benchmarks-pr.outcome != 'success' }} | |
uses: actions/checkout@v4 | |
with: | |
repository: TimefoldAI/timefold-solver-benchmarks | |
ref: main | |
path: ./timefold-solver-benchmarks | |
fetch-depth: 0 # Otherwise merge will fail on account of not having history. | |
- name: Prevent stale fork of timefold-solver-benchmarks | |
if: ${{ steps.checkout-solver-benchmarks-pr.outcome == 'success' }} | |
env: | |
BLESSED_REPO: "timefold-solver-benchmarks" | |
BLESSED_BRANCH: ${{ endsWith(github.head_ref, '.x') && github.head_ref || 'main' }} | |
shell: bash | |
working-directory: ./timefold-solver-benchmarks | |
run: ../timefold-solver/.github/scripts/prevent_stale_fork.sh | |
- name: Build and test timefold-solver-benchmarks | |
working-directory: ./timefold-solver-benchmarks | |
shell: bash | |
run: mvn -B -DskipJMH clean verify |