-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update InstallerTest for CI. * Enable run of workflow using the Actions tab. * Test sending workflow failure message. * Add webhook payload variable. * Test sending workflow failure message. * Show webhook payload. * Add workflow job URL to Slack message. * Run Unit and Integration Tests Separately. * Add processEnginePlugins property to camunda.cfg.xml * Restore EmailTaskTest * Update workflow file. * Display actual JSON data in history page
- Loading branch information
1 parent
d6a96ad
commit 5b585bd
Showing
20 changed files
with
134 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
name: CWS CI | ||
|
||
# Triggers the workflow on push or pull request | ||
#on: [push, pull_request] | ||
# Triggers the workflow on push | ||
on: | ||
push: | ||
schedule: | ||
|
@@ -42,15 +41,11 @@ jobs: | |
cd install/docker/es-only | ||
docker-compose up -d | ||
- name: Set up CWS database using Docker | ||
run: docker run -d -p 3306:3306 -e MYSQL_DATABASE=cws_dev -e MYSQL_ROOT_PASSWORD=rootpw --name mdb103 mariadb:10.3 | ||
run: docker run -d -p 3306:3306 -e MYSQL_DATABASE=cws_dev -e MYSQL_ROOT_PASSWORD=adminpw --name mdb103 mariadb:10.3 | ||
- name: Show Docker containers | ||
run: | | ||
sleep 5s | ||
docker ps -a | ||
- name: Stop CWS | ||
run: | | ||
chmod +x stop_dev.sh | ||
./stop_dev.sh | ||
- name: Run CWS | ||
run: | | ||
cd ci | ||
|
@@ -63,10 +58,11 @@ jobs: | |
ls -al | ||
- uses: browser-actions/setup-chrome@latest | ||
- run: chrome --version | ||
- name: Run Unit and Integration Tests | ||
run: | | ||
chmod +x test.sh | ||
./test.sh | ||
- name: Run Unit Tests | ||
run: mvn -Dmaven.compiler.debug=true -Dmaven.compiler.debuglevel=lines,vars,source clean test jacoco:report-aggregate | ||
shell: bash | ||
- name: Run Integration Tests | ||
run: mvn -Dmaven.compiler.debug=true -Dmaven.compiler.debuglevel=lines,vars,source integration-test verify -DskipTests | ||
shell: bash | ||
- name: Upload Jacoco report | ||
uses: actions/upload-artifact@v3 | ||
|
@@ -79,6 +75,7 @@ jobs: | |
name: test-screenshots | ||
path: test-screenshots/ | ||
- name: Send custom JSON data to Slack workflow | ||
if: ${{ always() }} | ||
id: slack | ||
uses: slackapi/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
cws-test/src/test/java/jpl/cws/test/SubProcessBoundaryCatchTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,61 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:camunda="http://activiti.org/bpmn" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" id="_Cz7uAKS7EeO8s9siEIxdog" targetNamespace="http://activiti.org/bpmn"> | ||
<bpmn2:process id="test_email_task" isExecutable="true"> | ||
<bpmn2:serviceTask id="ServiceTask_1" camunda:class="jpl.cws.task.EmailTask" name="send email"> | ||
<bpmn2:extensionElements> | ||
<camunda:field name="smtpHost" expression="${execution.getVariable('smtpHost') == null ? 'localhost' : smtpHost}" /> | ||
<camunda:field name="smtpPort" expression="${execution.getVariable('smtpPort') == null ? '25' : smtpPort}" /> | ||
<camunda:field name="from" expression="[email protected]" /> | ||
<camunda:field name="to" expression="[email protected]" /> | ||
<camunda:field name="subject" expression="test from CWS" /> | ||
<camunda:field name="body" expression="${body}" /> | ||
<camunda:field expression="html" name="bodyType"/> | ||
</bpmn2:extensionElements> | ||
<bpmn2:incoming>SequenceFlow_1</bpmn2:incoming> | ||
<bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing> | ||
</bpmn2:serviceTask> | ||
<bpmn2:startEvent id="StartEvent_1"> | ||
<bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing> | ||
</bpmn2:startEvent> | ||
<bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="ServiceTask_1"/> | ||
<bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="ServiceTask_1" targetRef="EndEvent_1"/> | ||
<bpmn2:endEvent id="EndEvent_1"> | ||
<bpmn2:incoming>SequenceFlow_2</bpmn2:incoming> | ||
</bpmn2:endEvent> | ||
</bpmn2:process> | ||
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_00yap56" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.1.1"> | ||
<bpmn:process id="test_email_task" name="Test Email Task" isExecutable="true"> | ||
<bpmn:startEvent id="StartEvent_1"> | ||
<bpmn:outgoing>SequenceFlow_1</bpmn:outgoing> | ||
</bpmn:startEvent> | ||
<bpmn:serviceTask id="ServiceTask_1" name="send email" camunda:class="jpl.cws.task.EmailTask"> | ||
<bpmn:extensionElements> | ||
<camunda:field name="smtpHost"> | ||
<camunda:expression>${execution.getVariable('smtpHost') == null ? 'localhost' : smtpHost}</camunda:expression> | ||
</camunda:field> | ||
<camunda:field name="smtpPort"> | ||
<camunda:expression>${execution.getVariable('smtpPort') == null ? '25' : smtpPort}</camunda:expression> | ||
</camunda:field> | ||
<camunda:field name="from"> | ||
<camunda:expression>[email protected]</camunda:expression> | ||
</camunda:field> | ||
<camunda:field name="to"> | ||
<camunda:expression>[email protected]</camunda:expression> | ||
</camunda:field> | ||
<camunda:field name="subject"> | ||
<camunda:expression>test from CWS</camunda:expression> | ||
</camunda:field> | ||
<camunda:field name="body"> | ||
<camunda:expression>${body}</camunda:expression> | ||
</camunda:field> | ||
<camunda:field name="bodyType"> | ||
<camunda:expression>html</camunda:expression> | ||
</camunda:field> | ||
</bpmn:extensionElements> | ||
<bpmn:incoming>SequenceFlow_1</bpmn:incoming> | ||
<bpmn:outgoing>SequenceFlow_2</bpmn:outgoing> | ||
</bpmn:serviceTask> | ||
<bpmn:endEvent id="EndEvent_1"> | ||
<bpmn:incoming>SequenceFlow_2</bpmn:incoming> | ||
</bpmn:endEvent> | ||
<bpmn:sequenceFlow id="SequenceFlow_1" sourceRef="StartEvent_1" targetRef="ServiceTask_1" /> | ||
<bpmn:sequenceFlow id="SequenceFlow_2" sourceRef="ServiceTask_1" targetRef="EndEvent_1" /> | ||
</bpmn:process> | ||
<bpmndi:BPMNDiagram id="BPMNDiagram_1"> | ||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="email_task_test"> | ||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="test_email_task"> | ||
<bpmndi:BPMNEdge id="Flow_1in0ucq_di" bpmnElement="SequenceFlow_1"> | ||
<di:waypoint x="215" y="117" /> | ||
<di:waypoint x="280" y="117" /> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNEdge id="Flow_1ym5xir_di" bpmnElement="SequenceFlow_2"> | ||
<di:waypoint x="380" y="117" /> | ||
<di:waypoint x="442" y="117" /> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"> | ||
<dc:Bounds height="36.0" width="36.0" x="612.0" y="287.0"/> | ||
<bpmndi:BPMNLabel> | ||
<dc:Bounds height="0.0" width="0.0" x="630.0" y="328.0"/> | ||
</bpmndi:BPMNLabel> | ||
<dc:Bounds x="179" y="99" width="36" height="36" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="_BPMNShape_ServiceTask_2" bpmnElement="ServiceTask_1"> | ||
<dc:Bounds height="80.0" width="100.0" x="691.0" y="265.0"/> | ||
<bpmndi:BPMNShape id="Activity_0zgipi5_di" bpmnElement="ServiceTask_1"> | ||
<dc:Bounds x="280" y="77" width="100" height="80" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="_BPMNShape_EndEvent_2" bpmnElement="EndEvent_1"> | ||
<dc:Bounds height="36.0" width="36.0" x="840.0" y="287.0"/> | ||
<bpmndi:BPMNLabel> | ||
<dc:Bounds height="0.0" width="0.0" x="858.0" y="328.0"/> | ||
</bpmndi:BPMNLabel> | ||
<bpmndi:BPMNShape id="Event_1dkf61l_di" bpmnElement="EndEvent_1"> | ||
<dc:Bounds x="442" y="99" width="36" height="36" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_2" targetElement="_BPMNShape_ServiceTask_2"> | ||
<di:waypoint xsi:type="dc:Point" x="648.0" y="305.0"/> | ||
<di:waypoint xsi:type="dc:Point" x="691.0" y="305.0"/> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ServiceTask_2" targetElement="_BPMNShape_EndEvent_2"> | ||
<di:waypoint xsi:type="dc:Point" x="791.0" y="305.0"/> | ||
<di:waypoint xsi:type="dc:Point" x="840.0" y="305.0"/> | ||
<bpmndi:BPMNLabel> | ||
<dc:Bounds height="6.0" width="6.0" x="816.0" y="305.0"/> | ||
</bpmndi:BPMNLabel> | ||
</bpmndi:BPMNEdge> | ||
</bpmndi:BPMNPlane> | ||
</bpmndi:BPMNDiagram> | ||
</bpmn2:definitions> | ||
</bpmn:definitions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.