-
Notifications
You must be signed in to change notification settings - Fork 556
59 lines (55 loc) · 1.81 KB
/
zeebe-qa-testbench.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Zeebe QA Testbench run
on:
workflow_dispatch:
inputs:
generation:
description: 'Specifies the generation template which should be used by the testbench run'
required: false
default: 'Zeebe SNAPSHOT'
type: string
branch:
description: 'Specifies the branch, for which the QA Testbench run should be executed'
default: 'main'
required: false
type: string
workflow_call:
inputs:
generation:
description: 'Specifies the generation template which should be used by the testbench run'
required: false
default: 'Zeebe SNAPSHOT'
type: string
branch:
description: 'Specifies the branch, for which the QA Testbench run should be executed'
default: 'main'
required: false
type: string
jobs:
prepare:
# variables in qa job cannot read env variable. So we are building buildUrl here as output so it can be re-used in both qa, wait and notify jobs
name: prepare
runs-on: ubuntu-latest
outputs:
buildUrl: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
steps:
- name: prepare variables
id: generate
run: exit 0
qa:
needs: prepare
name: Run testbench process
uses: ./.github/workflows/zeebe-testbench.yaml
with:
processId: qa-github-trigger
variables: >
{
\"zeebeImage\": \"$IMAGE\",
\"generationTemplate\": \"${{ inputs.generation }}\",
\"channel\": \"Internal Dev\",
\"branch\": \"${{ inputs.branch }}\",
\"build\": \"${{ needs.prepare.outputs.buildUrl }}\",
\"businessKey\": \"${{ needs.prepare.outputs.buildUrl }}\",
\"processId\": \"qa-protocol\"
}
branch: ${{ inputs.branch }}
secrets: inherit