diff --git a/pkg/runner/command.go b/pkg/runner/command.go index 48166d29..956ee0af 100755 --- a/pkg/runner/command.go +++ b/pkg/runner/command.go @@ -36,6 +36,7 @@ func (rc *RunContext) commandHandler(ctx context.Context) common.LineHandler { } if resumeCommand != "" && command != resumeCommand { + logger.Infof(" \U00002699 %s", line) return false } arg = unescapeCommandData(arg) diff --git a/pkg/runner/command_test.go b/pkg/runner/command_test.go index d4981feb..4d6c5489 100644 --- a/pkg/runner/command_test.go +++ b/pkg/runner/command_test.go @@ -64,8 +64,10 @@ func TestAddpath(t *testing.T) { } func TestStopCommands(t *testing.T) { + logger, hook := test.NewNullLogger() + a := assert.New(t) - ctx := context.Background() + ctx := common.WithLogger(context.Background(), logger) rc := new(RunContext) handler := rc.commandHandler(ctx) @@ -77,6 +79,13 @@ func TestStopCommands(t *testing.T) { handler("::my-end-token::\n") handler("::set-env name=x::abcd\n") a.Equal("abcd", rc.Env["x"]) + + messages := make([]string, 0) + for _, entry := range hook.AllEntries() { + messages = append(messages, entry.Message) + } + + a.Contains(messages, " \U00002699 ::set-env name=x::abcd\n") } func TestAddpathADO(t *testing.T) {