diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 07313486f7..d12dd504ee 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -3,36 +3,25 @@ name: Build Chain on: [pull_request] jobs: - build-chain-openjdk8: + build-chain: + strategy: + matrix: + java-version: [8] + fail-fast: false runs-on: ubuntu-latest - name: Pull Request openjdk8 + name: Maven Build steps: - - uses: actions/checkout@v2 - - name: Build Chain - id: build-chain - uses: kiegroup/github-action-build-chain@openjdk8 - with: - parent-dependencies: 'kie-soup' - child-dependencies: 'droolsjbpm-knowledge' - build-command: 'mvn -e -nsu -Dfull -Pwildfly clean install -Prun-code-coverage -Dcontainer.profile=wildfly -Dcontainer=wildfly -Dintegration-tests=true -Dmaven.test.failure.ignore=true -DjvmArgs="-Xms1g -Xmx4g"' - build-command-upstream: "mvn -e -T1C clean install -DskipTests -Dgwt.compiler.skip=true -Dgwt.skipCompilation=true -Denforcer.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Drevapi.skip=true" - workflow-file-name: "pull_request.yml" - env: + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java-version }} + - name: Build Chain ${{ matrix.java-version }} + id: build-chain + uses: kiegroup/github-action-build-chain@master + with: + parent-dependencies: 'kie-soup|:build-chain-openjdk8' + child-dependencies: 'droolsjbpm-knowledge|:build-chain-openjdk8' + build-command: 'mvn -e -nsu -Dfull -Pwildfly install -Prun-code-coverage -Dcontainer.profile=wildfly -Dcontainer=wildfly -Dintegration-tests=true -Dmaven.test.failure.ignore=true' + workflow-file-name: "pull_request.yml" + env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - build-chain-openjdk11: - runs-on: ubuntu-latest - name: Pull Request openjdk11 - steps: - - uses: actions/checkout@v2 - - name: Build Chain - id: build-chain - uses: kiegroup/github-action-build-chain@openjdk11 - with: - parent-dependencies: 'kie-soup' - child-dependencies: 'droolsjbpm-knowledge' - build-command: 'mvn -e -nsu -Dfull -Pwildfly clean install -Prun-code-coverage -Dcontainer.profile=wildfly -Dcontainer=wildfly -Dintegration-tests=true -Dmaven.test.failure.ignore=true -DjvmArgs="-Xms1g -Xmx4g"' - build-command-upstream: "mvn -e -T1C clean install -DskipTests -Dgwt.compiler.skip=true -Dgwt.skipCompilation=true -Denforcer.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Drevapi.skip=true" - workflow-file-name: "pull_request.yml" - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" -