This repo shows an example setup for github actions to develop and run business process models with camunda.
The showcase uses a relatively simple example for now, but it should provide enough insight to tackle more complex scenarios later on.
BPMN lint is running as part of the github actions.
Prerecorded tests, bundled as a Postman collection, are run via the Newman CLI (newman) against a dockerized Camunda instance within GitHub Actions.
The collection contains following steps
- ping the camunda app
- deploy a business process model
- start a process via process definition key
- check for waiting external task
- fetch and lock of said external task
- complete the external task
- delete the process model deployment
┌─────────────────────────┬──────────────────┬──────────────────┐
│ │ executed │ failed │
├─────────────────────────┼──────────────────┼──────────────────┤
│ iterations │ 1 │ 0 │
├─────────────────────────┼──────────────────┼──────────────────┤
│ requests │ 7 │ 0 │
├─────────────────────────┼──────────────────┼──────────────────┤
│ test-scripts │ 7 │ 0 │
├─────────────────────────┼──────────────────┼──────────────────┤
│ prerequest-scripts │ 0 │ 0 │
├─────────────────────────┼──────────────────┼──────────────────┤
│ assertions │ 8 │ 0 │
├─────────────────────────┴──────────────────┴──────────────────┤
│ total run duration: 18.4s │
├───────────────────────────────────────────────────────────────┤
│ total data received: 6.67kB (approx) │
├───────────────────────────────────────────────────────────────┤
│ average response time: 2.6s [min: 28ms, max: 17.5s, s.d.: 6s] │
└───────────────────────────────────────────────────────────────┘