initial support for expressons

Signed-off-by: Casey Lee <[email protected]>
This commit is contained in:
Casey Lee committed 2020-02-20 21:05:59 -05:00
1 parent 09773f7c5c
commit 73559207c7
10 files changed
+286 -108

No files matched your search

+6 -1
View File
@@ -21,10 +21,15 @@ func TestSetOutput(t *testing.T) {
assert := assert.New(t)
ctx := context.Background()
rc := new(RunContext)
rc.StepResults = make(map[string]*stepResult)
handler := rc.commandHandler(ctx)
rc.CurrentStep = "my-step"
rc.StepResults[rc.CurrentStep] = &stepResult{
Outputs: make(map[string]string),
}
handler("::set-output name=x::valz\n")
assert.Equal("valz", rc.Outputs["x"])
assert.Equal("valz", rc.StepResults["my-step"].Outputs["x"])
}
func TestAddpath(t *testing.T) {