Skip to content

[bot][dev]: Bump actions/checkout from 3 to 4 #111

[bot][dev]: Bump actions/checkout from 3 to 4

[bot][dev]: Bump actions/checkout from 3 to 4 #111

name: (FDB) Build Chain
on:
pull_request:
types: [labeled]
branches:
- development
- 8.*
paths-ignore:
- 'LICENSE*'
- '.gitignore'
- '**.md'
- '**.adoc'
- '*.txt'
- '.ci/**'
jobs:
build-chain:
if: contains(github.event.pull_request.labels.*.name, 'run_fdb')
concurrency:
group: fdb-${{ github.head_ref }}
cancel-in-progress: true
strategy:
matrix:
os: [ubuntu-latest]
java-version: [17]
fail-fast: false
runs-on: ${{ matrix.os }}
name: Maven Build
steps:
- name: Free disk space
if: ${{ matrix.os == 'ubuntu-latest' }}
shell: bash
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
docker rmi $(docker image ls -aq)
df -h
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
check-latest: true
# See https://docs.github.com/en/actions/guides/building-and-testing-java-with-maven#caching-dependencies
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-${{ matrix.java-version }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-${{ matrix.java-version }}-m2
- name: Build Chain ${{ matrix.java-version }}
id: build-chain
uses: kiegroup/[email protected]
with:
definition-file: https://raw.githubusercontent.com/${GROUP}/optaplanner/main/.ci/buildchain-config.yaml
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
OPTAPLANNER_BUILD_MVN_OPTS_UPSTREAM: "-Dfull"
- name: Check Surefire Report
if: ${{ always() }}
uses: ScaCap/[email protected]
with:
fail_on_test_failures: true
fail_if_no_tests: false
skip_publishing: true