From 980f9fcbf3fbdbc4581aef4c1e5df2950f4f6d29 Mon Sep 17 00:00:00 2001 From: ginxo Date: Wed, 26 Aug 2020 14:05:40 +0200 Subject: [PATCH 1/9] BXMSPROD-963 pull_request.yml updated --- .github/workflows/pull_request.yml | 35 ++++++++++-------------------- 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 7ac2d29f567..6250e232f81 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,16 +1,18 @@ -name: Build Chain +name: Build Chain [pull request] on: [pull_request] jobs: - build-chain-openjdk8: + build-chain: + strategy: + matrix: + java-version: [8, 11] runs-on: ubuntu-latest - name: Pull Request openjdk8 + name: Build Pull Request steps: - - uses: actions/checkout@v2 - - name: Build Chain - id: build-chain - uses: kiegroup/github-action-build-chain@openjdk8 + - name: Build Chain ${{ matrix.java-version }} + id: build-chain + uses: kiegroup/github-action-build-chain@v1.2 with: parent-dependencies: 'kie-wb-playground' child-dependencies: 'drools-wb' @@ -18,20 +20,5 @@ jobs: 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 }}" - 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-wb-playground' - child-dependencies: 'drools-wb' - build-command: 'mvn -e -nsu -Dfull clean install -Prun-code-coverage -Pwildfly -Dcontainer=wildfly -Dcontainer.profile=wildfly -Dintegration-tests=true -Dmaven.test.failure.ignore=true -Dwebdriver.firefox.bin=/opt/tools/firefox-60esr/firefox-bin -DjvmArgs="-Xms1g -Xmx5g"' - 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 }}" + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + \ No newline at end of file From 022b5df1a370452f3fa361ee31d10493ab808ea8 Mon Sep 17 00:00:00 2001 From: ginxo Date: Wed, 26 Aug 2020 15:04:52 +0200 Subject: [PATCH 2/9] BXMSPROD-963 pull_request.yml updated. build chain v1.3 --- .github/workflows/pull_request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 6250e232f81..09f765415e4 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Build Chain ${{ matrix.java-version }} id: build-chain - uses: kiegroup/github-action-build-chain@v1.2 + uses: kiegroup/github-action-build-chain@v1.3 with: parent-dependencies: 'kie-wb-playground' child-dependencies: 'drools-wb' From 6c6f98b399a804155d78d5eb5d1a6d80bbd43e5c Mon Sep 17 00:00:00 2001 From: ginxo Date: Thu, 27 Aug 2020 12:31:36 +0200 Subject: [PATCH 3/9] BXMSPROD-963 pull_request.yml updated. Testing master --- .github/workflows/pull_request.yml | 31 +++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 09f765415e4..d755688e137 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,4 +1,4 @@ -name: Build Chain [pull request] +name: Build Chain on: [pull_request] @@ -7,18 +7,23 @@ jobs: strategy: matrix: java-version: [8, 11] + fail-fast: false runs-on: ubuntu-latest - name: Build Pull Request + name: Maven Build steps: - - name: Build Chain ${{ matrix.java-version }} - id: build-chain - uses: kiegroup/github-action-build-chain@v1.3 - with: - parent-dependencies: 'kie-wb-playground' - child-dependencies: 'drools-wb' - build-command: 'mvn -e -nsu -Dfull clean install -Prun-code-coverage -Pwildfly -Dcontainer=wildfly -Dcontainer.profile=wildfly -Dintegration-tests=true -Dmaven.test.failure.ignore=true -Dwebdriver.firefox.bin=/opt/tools/firefox-60esr/firefox-bin -DjvmArgs="-Xms1g -Xmx5g"' - 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 }}" + - 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-wb-playground' + child-dependencies: 'drools-wb' + build-command: 'mvn -e -nsu -Dfull clean install -Prun-code-coverage -Pwildfly -Dcontainer=wildfly -Dcontainer.profile=wildfly -Dintegration-tests=true -Dmaven.test.failure.ignore=true -Dwebdriver.firefox.bin=/opt/tools/firefox-60esr/firefox-bin -DjvmArgs="-Xms1g -Xmx5g"' + 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 }}" \ No newline at end of file From 04bcd2daf6dca2e9513bbd2d0c6f837dfe2b2923 Mon Sep 17 00:00:00 2001 From: ginxo Date: Thu, 27 Aug 2020 13:58:20 +0200 Subject: [PATCH 4/9] BXMSPROD-963 pull_request.yml updated. kiegroup/github-action-build-chain@v1.4 --- .github/workflows/pull_request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index d755688e137..bf14b1f2db4 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -17,7 +17,7 @@ jobs: java-version: ${{ matrix.java-version }} - name: Build Chain ${{ matrix.java-version }} id: build-chain - uses: kiegroup/github-action-build-chain@master + uses: kiegroup/github-action-build-chain@v1.4 with: parent-dependencies: 'kie-wb-playground' child-dependencies: 'drools-wb' From 7e41ba064657d82a067ac10f237d21afa62a5718 Mon Sep 17 00:00:00 2001 From: ginxo Date: Mon, 31 Aug 2020 10:05:39 +0200 Subject: [PATCH 5/9] BXMSPROD-963 pull_request.yml updated. rm -rf for upstream commands --- .github/workflows/pull_request.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index bf14b1f2db4..6fece0314e2 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -22,7 +22,9 @@ jobs: parent-dependencies: 'kie-wb-playground' child-dependencies: 'drools-wb' build-command: 'mvn -e -nsu -Dfull clean install -Prun-code-coverage -Pwildfly -Dcontainer=wildfly -Dcontainer.profile=wildfly -Dintegration-tests=true -Dmaven.test.failure.ignore=true -Dwebdriver.firefox.bin=/opt/tools/firefox-60esr/firefox-bin -DjvmArgs="-Xms1g -Xmx5g"' - 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" + 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 + rm -rf ./* workflow-file-name: "pull_request.yml" env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" From 32e4870bca99be4cebb5ac495fc1256d7ad1f607 Mon Sep 17 00:00:00 2001 From: ginxo Date: Tue, 1 Sep 2020 12:08:34 +0200 Subject: [PATCH 6/9] BXMSPROD-963 using openjdk 8 --- .github/workflows/pull_request.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 6fece0314e2..1588284c941 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -4,20 +4,12 @@ on: [pull_request] jobs: build-chain: - strategy: - matrix: - java-version: [8, 11] - fail-fast: false runs-on: ubuntu-latest - name: Maven Build + name: Maven Build (8) steps: - - name: Set up JDK - uses: actions/setup-java@v1 - with: - java-version: ${{ matrix.java-version }} - - name: Build Chain ${{ matrix.java-version }} + - name: Build Chain id: build-chain - uses: kiegroup/github-action-build-chain@v1.4 + uses: kiegroup/github-action-build-chain@openjdk8 with: parent-dependencies: 'kie-wb-playground' child-dependencies: 'drools-wb' @@ -26,6 +18,7 @@ jobs: 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 rm -rf ./* workflow-file-name: "pull_request.yml" + archive-artifacts-path: | + **/target/screenshots/** env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - \ No newline at end of file From 3955475373c9961592fbd2a3faf08bef382a6e0d Mon Sep 17 00:00:00 2001 From: ginxo Date: Tue, 1 Sep 2020 15:17:32 +0200 Subject: [PATCH 7/9] BXMSPROD-963 pull_request.yml updated. clean removed from every mvn command --- .github/workflows/pull_request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 1588284c941..296a7f86ae8 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -13,9 +13,9 @@ jobs: with: parent-dependencies: 'kie-wb-playground' child-dependencies: 'drools-wb' - build-command: 'mvn -e -nsu -Dfull clean install -Prun-code-coverage -Pwildfly -Dcontainer=wildfly -Dcontainer.profile=wildfly -Dintegration-tests=true -Dmaven.test.failure.ignore=true -Dwebdriver.firefox.bin=/opt/tools/firefox-60esr/firefox-bin -DjvmArgs="-Xms1g -Xmx5g"' + build-command: 'mvn -e -nsu -Dfull install -Prun-code-coverage -Pwildfly -Dcontainer=wildfly -Dcontainer.profile=wildfly -Dintegration-tests=true -Dmaven.test.failure.ignore=true -Dwebdriver.firefox.bin=/opt/tools/firefox-60esr/firefox-bin -DjvmArgs="-Xms1g -Xmx5g"' 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 + mvn -e -T1C install -DskipTests -Dgwt.compiler.skip=true -Dgwt.skipCompilation=true -Denforcer.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Drevapi.skip=true rm -rf ./* workflow-file-name: "pull_request.yml" archive-artifacts-path: | From e14c6068fc889949938b5e0044ba7f5b43ec1d5e Mon Sep 17 00:00:00 2001 From: ginxo Date: Fri, 4 Sep 2020 11:01:57 +0200 Subject: [PATCH 8/9] BXMSPROD-963 original version reverted --- .github/workflows/pull_request.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 296a7f86ae8..0f4d8f9fdd8 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -4,12 +4,20 @@ on: [pull_request] jobs: build-chain: + strategy: + matrix: + java-version: [8, 11] + fail-fast: false runs-on: ubuntu-latest - name: Maven Build (8) + name: Maven Build steps: - - name: Build Chain + - 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@openjdk8 + uses: kiegroup/github-action-build-chain@v1.4 with: parent-dependencies: 'kie-wb-playground' child-dependencies: 'drools-wb' From 26d9e2ecbea7fb1943495978a672e6706b6a0275 Mon Sep 17 00:00:00 2001 From: ginxo Date: Fri, 4 Sep 2020 11:32:40 +0200 Subject: [PATCH 9/9] BXMSPROD-963 DjvmArgs removed --- .github/workflows/pull_request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 0f4d8f9fdd8..ce5d087d1c3 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -21,7 +21,7 @@ jobs: with: parent-dependencies: 'kie-wb-playground' child-dependencies: 'drools-wb' - build-command: 'mvn -e -nsu -Dfull install -Prun-code-coverage -Pwildfly -Dcontainer=wildfly -Dcontainer.profile=wildfly -Dintegration-tests=true -Dmaven.test.failure.ignore=true -Dwebdriver.firefox.bin=/opt/tools/firefox-60esr/firefox-bin -DjvmArgs="-Xms1g -Xmx5g"' + build-command: 'mvn -e -nsu -Dfull install -Prun-code-coverage -Pwildfly -Dcontainer=wildfly -Dcontainer.profile=wildfly -Dintegration-tests=true -Dmaven.test.failure.ignore=true -Dwebdriver.firefox.bin=/opt/tools/firefox-60esr/firefox-bin' build-command-upstream: | mvn -e -T1C install -DskipTests -Dgwt.compiler.skip=true -Dgwt.skipCompilation=true -Denforcer.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Drevapi.skip=true rm -rf ./*