| |
| name: Build Chain |
| |
| on: |
| pull_request: |
| types: [opened, synchronize, reopened, ready_for_review] |
| branches: |
| - development |
| - 8.* |
| paths-ignore: |
| - 'LICENSE*' |
| - '.gitignore' |
| - '.gitattributes' |
| - '**.md' |
| - '**.adoc' |
| - '*.txt' |
| |
| jobs: |
| build-chain: |
| concurrency: |
| group: pull_request-${{ github.event_name }}-${{ github.head_ref }}-${{ matrix.os }}-${{ matrix.java-version }} |
| cancel-in-progress: true |
| strategy: |
| matrix: |
| os: [ubuntu-latest, windows-latest] |
| java-version: [17, 19] |
| fail-fast: true |
| runs-on: ${{ matrix.os }} |
| name: Maven Build |
| steps: |
| - name: Support long paths |
| if: ${{ matrix.os == 'windows-latest' }} |
| uses: kiegroup/kie-ci/.ci/actions/long-paths@main |
| - name: Sets the migration env variable on Windows |
| if: runner.os == 'Windows' |
| run: echo "MIGRATE_TO_9=${{ github.base_ref == 'development' }}" >> $env:GITHUB_ENV |
| - name: Sets the migration env variable on Linux |
| if: runner.os != 'Windows' |
| run: echo "MIGRATE_TO_9=${{ github.base_ref == 'development' }}" >> $GITHUB_ENV |
| - name: Java and Maven Setup |
| uses: kiegroup/kie-ci/.ci/actions/maven@main |
| with: |
| java-version: ${{ matrix.java-version }} |
| maven-version: ${{ matrix.maven-version }} |
| cache-key-prefix: ${{ runner.os }}-${{ matrix.java-version }}-maven${{ matrix.maven-version }} |
| - name: Build Chain |
| uses: kiegroup/kie-ci/.ci/actions/build-chain@main |
| with: |
| definition-file: https://raw.githubusercontent.com/${GROUP:kiegroup}/optaplanner/${BRANCH:main}/.ci/buildchain-config.yaml |
| annotations-prefix: ${{ runner.os }}-${{ matrix.java-version }}/${{ matrix.maven-version }} |
| github-token: "${{ secrets.GITHUB_TOKEN }}" |
| - name: Surefire Report |
| uses: kiegroup/kie-ci/.ci/actions/surefire-report@main |
| if: ${{ always() }} |