feat: improve support for Java records #244
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 - Timefold Solver Enterprise Edition | |
on: | |
pull_request: | |
branches: [main, '*.x'] | |
paths-ignore: | |
- 'LICENSE*' | |
- '.gitignore' | |
- '**.md' | |
- '**.adoc' | |
- '*.txt' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: downstream-enterprise-${{ 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 | |
# 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: Find the proper timefold-solver-enterprise repo and branch | |
env: | |
CHAIN_USER: ${{ github.actor }} | |
CHAIN_BRANCH: ${{ github.head_ref }} | |
CHAIN_REPO: "timefold-solver-enterprise" | |
CHAIN_DEFAULT_BRANCH: ${{ endsWith(github.head_ref, '.x') && github.head_ref || 'main' }} | |
shell: bash | |
run: ./timefold-solver/.github/scripts/check_chain_repo.sh | |
- name: Checkout timefold-solver-enterprise | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ env.TARGET_CHAIN_USER }}/${{ env.TARGET_CHAIN_REPO }} | |
ref: ${{ env.TARGET_CHAIN_BRANCH }} | |
path: ./timefold-solver-enterprise | |
fetch-depth: 0 # Otherwise merge in the next step will fail on account of not having history. | |
- name: Prevent stale fork of timefold-solver-enterprise | |
env: | |
BLESSED_REPO: "timefold-solver-enterprise" | |
BLESSED_BRANCH: ${{ endsWith(github.head_ref, '.x') && github.head_ref || 'main' }} | |
shell: bash | |
working-directory: ./timefold-solver-enterprise | |
run: ../timefold-solver/.github/scripts/prevent_stale_fork.sh | |
# Build and test | |
- name: Setup Temurin 17 and Maven | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Quickly build timefold-solver | |
working-directory: ./timefold-solver | |
shell: bash | |
run: mvn -B -Dquickly clean install | |
- name: Build and test timefold-solver-enterprise | |
working-directory: ./timefold-solver-enterprise | |
shell: bash | |
run: mvn -B clean verify |