forked from walmartlabs/concord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconcord.yml
36 lines (32 loc) · 949 Bytes
/
concord.yml
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
configuration:
dependencies:
- "mvn://org.codehaus.groovy:groovy-all:pom:2.5.8"
- "mvn://com.walmartlabs.concord.plugins.basic:dynamic-tasks:1.76.1"
- "mvn://com.walmartlabs.concord.plugins:git:1.32.3"
flows:
default:
- call: myFlow
# the flow we want to test
myFlow:
# normally, it would call the "real" task
- task: github
in:
action: mergePR
accessToken: "..."
org: myOrg
repo: myRepo
prId: 123
test:
- loadTasks: "mocks"
- try:
- call: myFlow
error:
- log: "Failed as expected with ${lastError.cause}"
profiles:
test:
configuration:
# for testing purposes we omit the github plugin, which is replaced with a "mock" version loaded dynamically
dependencies:
- "mvn://org.codehaus.groovy:groovy-all:pom:2.5.8"
- "mvn://com.walmartlabs.concord.plugins.basic:dynamic-tasks:1.76.1"
entryPoint: test