| # This workflow will build a Java project with Maven |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven |
| name: Jenkins Tests |
| on: |
| pull_request: |
| paths: |
| - '.ci/jenkins/**' |
| - '.github/workflows/jenkins-tests-PR.yml' |
| |
| jobs: |
| dsl-tests: |
| concurrency: |
| group: ${{ github.repository.name }}_dsl_tests-${{ github.head_ref }} |
| cancel-in-progress: true |
| runs-on: ubuntu-latest |
| steps: |
| - name: Set correct base branch |
| run: | |
| branch="${{ github.base_ref }}" |
| if [ "${branch}" = "development" ]; then |
| branch='main' |
| fi |
| echo "BASE_BRANCH=${branch}" >> $GITHUB_ENV |
| - name: DSL tests |
| uses: kiegroup/kie-ci/.ci/actions/dsl-tests@main |
| with: |
| project: optaplanner |
| main-config-file-repo: kiegroup/optaplanner |
| main-config-file-path: .ci/jenkins/config/main.yaml |
| branch-config-file-repo: kiegroup/optaplanner |
| base-branch: ${{ env.BASE_BRANCH }} |