diff --git a/.github/workflows/pull_request_full_downstream_ci.yml b/.github/workflows/pull_request_full_downstream_ci.yml index a525daed0bd..2b2bdbcb333 100644 --- a/.github/workflows/pull_request_full_downstream_ci.yml +++ b/.github/workflows/pull_request_full_downstream_ci.yml @@ -229,9 +229,9 @@ jobs: - name: Build kogito-tooling env: - EXTERNAL_ASSET__dmnEditorPath: "../kie-wb-common/kie-wb-common-dmn/kie-wb-common-dmn-webapp-kogito-runtime/target/kie-wb-common-dmn-webapp-kogito-runtime", - EXTERNAL_ASSET__bpmnEditorPath: "../kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-kogito-runtime/target/kie-wb-common-stunner-bpmn-kogito-runtime", - EXTERNAL_ASSET__scesimEditorPath: "../drools-wb/drools-wb-screens/drools-wb-scenario-simulation-editor/drools-wb-scenario-simulation-editor-kogito-runtime/target/drools-wb-scenario-simulation-editor-kogito-runtime", + EXTERNAL_ASSET__dmnEditorPath: "../kie-wb-common/kie-wb-common-dmn/kie-wb-common-dmn-webapp-kogito-runtime/target/kie-wb-common-dmn-webapp-kogito-runtime" + EXTERNAL_ASSET__bpmnEditorPath: "../kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-kogito-runtime/target/kie-wb-common-stunner-bpmn-kogito-runtime" + EXTERNAL_ASSET__scesimEditorPath: "../drools-wb/drools-wb-screens/drools-wb-scenario-simulation-editor/drools-wb-scenario-simulation-editor-kogito-runtime/target/drools-wb-scenario-simulation-editor-kogito-runtime" ROUTER_targetOrigin: "https://kiegroup.github.io" ROUTER_relativePath: "kogito-online-ci/${{ steps.buildInfo.outputs.category }}/${{ steps.buildInfo.outputs.id }}/editors/" DOWNLOAD_HUB_linuxUrl: "https://kiegroup.github.io/kogito-online-ci/hub_download_unsupported.html" @@ -295,22 +295,24 @@ jobs: git push origin gh-pages cd - - # Rebuilds packages, starts and waits for the local servers and runs integration tests for the Chrome Extension - - name: Run Chrome Extension integration tests + - name: Rebuild Chrome Extension to use servers running on localhost env: DISPLAY: ":99.0" - EXTERNAL_ASSET__dmnEditorPath: "../kie-wb-common/kie-wb-common-dmn/kie-wb-common-dmn-webapp-kogito-runtime/target/kie-wb-common-dmn-webapp-kogito-runtime", - EXTERNAL_ASSET__bpmnEditorPath: "../kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-kogito-runtime/target/kie-wb-common-stunner-bpmn-kogito-runtime", - EXTERNAL_ASSET__scesimEditorPath: "../drools-wb/drools-wb-screens/drools-wb-scenario-simulation-editor/drools-wb-scenario-simulation-editor-kogito-runtime/target/drools-wb-scenario-simulation-editor-kogito-runtime", + EXTERNAL_ASSET__dmnEditorPath: "../../../kie-wb-common/kie-wb-common-dmn/kie-wb-common-dmn-webapp-kogito-runtime/target/kie-wb-common-dmn-webapp-kogito-runtime" + EXTERNAL_ASSET__bpmnEditorPath: "../../../kie-wb-common/kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-kogito-runtime/target/kie-wb-common-stunner-bpmn-kogito-runtime" + EXTERNAL_ASSET__scesimEditorPath: "../../../drools-wb/drools-wb-screens/drools-wb-scenario-simulation-editor/drools-wb-scenario-simulation-editor-kogito-runtime/target/drools-wb-scenario-simulation-editor-kogito-runtime" ROUTER_targetOrigin: "https://localhost:9000" ROUTER_relativePath: "" ONLINEEDITOR_url: "http://localhost:9001" + run: cd kogito-tooling/packages/chrome-extension-pack-kogito-kie-editors && yarn run build:prod && cd - + - name: Run Chrome Extension integration tests run: | - cd kogito-tooling/packages/online-editor && yarn run build:prod && yarn run start & - cd kogito-tooling/packages/chrome-extension-pack-kogito-kie-editors && yarn run build:prod && yarn run serve-envelope & - sleep 20 + cd kogito-tooling/packages/online-editor && yarn run start & + cd kogito-tooling/packages/chrome-extension-pack-kogito-kie-editors && yarn run serve-envelope & + sleep 30 cd kogito-tooling/packages/chrome-extension-pack-kogito-kie-editors && yarn run test:it + cd - - name: Archive Chrome Extension integration tests screenshots if: success() || failure()