general: add unity configuration to codereview.cfg
This allows us to use cueckoo to trigger unity builds for CLs.
Change-Id: I6ec41786c28d10e56b3c57c3d18cc34006aff44c
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/8881
Reviewed-by: CUE cueckoo <cueckoo@gmail.com>
Reviewed-by: Paul Jolly <paul@myitcv.org.uk>
diff --git a/cmd/cue/cmd/testdata/script/cmd_github.txt b/cmd/cue/cmd/testdata/script/cmd_github.txt
index 77de89b..5282f12 100644
--- a/cmd/cue/cmd/testdata/script/cmd_github.txt
+++ b/cmd/cue/cmd/testdata/script/cmd_github.txt
@@ -1263,6 +1263,7 @@
_#runtrybot: "runtrybot"
_#mirror: "mirror"
_#importpr: "importpr"
+ _#unity: "unity"
_#dispatchJob: _#job & {
_#type: string
"runs-on": _#linuxMachine
diff --git a/codereview.cfg b/codereview.cfg
index d12cfa7..0f50567 100644
--- a/codereview.cfg
+++ b/codereview.cfg
@@ -1,2 +1,3 @@
gerrit: https://cue-review.googlesource.com/cue
github: https://github.com/cuelang/cue
+cue-unity: https://github.com/cue-sh/unity
diff --git a/cue/testdata/eval/github.txtar b/cue/testdata/eval/github.txtar
index 1bebdb0..32d970f 100644
--- a/cue/testdata/eval/github.txtar
+++ b/cue/testdata/eval/github.txtar
@@ -139,6 +139,7 @@
_#runtrybot: "runtrybot"
_#mirror: "mirror"
_#importpr: "importpr"
+ _#unity: "unity"
_#dispatchJob: _#job & {
_#type: string
"runs-on": _#linuxMachine
@@ -1399,12 +1400,13 @@
_#runtrybot(:ci): (string){ "runtrybot" }
_#mirror(:ci): (string){ "mirror" }
_#importpr(:ci): (string){ "importpr" }
+ _#unity(:ci): (string){ "unity" }
_#dispatchJob(:ci): (#struct){
"runs-on": (string){ "ubuntu-18.04" }
_#type(:ci): (string){ string }
if: (_|_){
// [incomplete] workflows.1.schema._#dispatchJob.if: invalid interpolation: non-concrete value string (type string):
- // ./workflows.cue:137:14
+ // ./workflows.cue:138:14
}
}
name: (string){ "Repository Dispatch" }
@@ -2025,12 +2027,13 @@
_#runtrybot(:ci): (string){ "runtrybot" }
_#mirror(:ci): (string){ "mirror" }
_#importpr(:ci): (string){ "importpr" }
+ _#unity(:ci): (string){ "unity" }
_#dispatchJob(:ci): (#struct){
"runs-on": (string){ "ubuntu-18.04" }
_#type(:ci): (string){ string }
if: (_|_){
// [incomplete] repository_dispatch._#dispatchJob.if: invalid interpolation: non-concrete value string (type string):
- // ./workflows.cue:137:14
+ // ./workflows.cue:138:14
}
}
name: (string){ "Repository Dispatch" }
@@ -2394,7 +2397,7 @@
name: (string){ "Set go build tags" }
run: (_|_){
// [incomplete] _#setGoBuildTags.run: invalid interpolation: non-concrete value string (type string):
- // ./workflows.cue:283:10
+ // ./workflows.cue:284:10
}
}
_#installGo(:ci): (#struct){
@@ -2448,7 +2451,7 @@
_#cueckooCopybaraImage(:ci): (string){ "cueckoo/copybara:afc4ae03eed00b0c9d7415141cd1b5dfa583da7c" }
_#copybaraCmd(:ci): (_|_){
// [incomplete] _#copybaraCmd: invalid interpolation: non-concrete value string (type string):
- // ./workflows.cue:350:2
+ // ./workflows.cue:351:2
_#cmd(:ci): (string){ string }
}
_#copybaraSteps(:ci): (#list){
@@ -2462,7 +2465,7 @@
name: (string){ string }
run: (_|_){
// [incomplete] _#copybaraSteps.1.run: invalid interpolation: non-concrete value string (type string):
- // ./workflows.cue:350:2
+ // ./workflows.cue:351:2
_#cmd(:ci): (string){ string }
}
}
@@ -2624,6 +2627,7 @@
_#runtrybot: "runtrybot"
_#mirror: "mirror"
_#importpr: "importpr"
+ _#unity: "unity"
_#dispatchJob: (〈1;_#job〉 & {
_#type: string
"runs-on": 〈2;_#linuxMachine〉
diff --git a/internal/ci/workflows.cue b/internal/ci/workflows.cue
index 566adb5..e2525ba 100644
--- a/internal/ci/workflows.cue
+++ b/internal/ci/workflows.cue
@@ -188,6 +188,7 @@
_#runtrybot: "runtrybot"
_#mirror: "mirror"
_#importpr: "importpr"
+ _#unity: "unity"
_#dispatchJob: _#job & {
_#type: string