fix: update output format
All checks were successful
default / ensure tests work (push) Successful in 25s
All checks were successful
default / ensure tests work (push) Successful in 25s
This commit is contained in:
parent
402ecfd760
commit
2b90918d74
2 changed files with 7 additions and 7 deletions
|
|
@ -17,7 +17,7 @@ const (
|
||||||
|
|
||||||
// https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
|
// https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
|
||||||
multiLineFileDelim = "234baa68-d26f-4bf9-996d-45ec3520cb95"
|
multiLineFileDelim = "234baa68-d26f-4bf9-996d-45ec3520cb95"
|
||||||
multilineFileCmd = "%s<<" + multiLineFileDelim + "\n%s\n" + multiLineFileDelim // ${name}<<${delimiter}${os.EOL}${convertedVal}${os.EOL}${delimiter}
|
multilineFileCmd = "%s<<" + multiLineFileDelim + "\n%s\n" + multiLineFileDelim + "\n" // ${name}<<${delimiter}${os.EOL}${convertedVal}${os.EOL}${delimiter}${os.EOL}
|
||||||
|
|
||||||
addMatcherCmd = "add-matcher"
|
addMatcherCmd = "add-matcher"
|
||||||
removeMatcherCmd = "remove-matcher"
|
removeMatcherCmd = "remove-matcher"
|
||||||
|
|
|
||||||
|
|
@ -322,8 +322,8 @@ func TestAction_SaveState(t *testing.T) {
|
||||||
t.Errorf("unable to read temp env file: %s", err)
|
t.Errorf("unable to read temp env file: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
want := fmt.Sprintf("key<<%s\nvalue\n%s", multiLineFileDelim, multiLineFileDelim)
|
want := fmt.Sprintf("key<<%s\nvalue\n%s\n", multiLineFileDelim, multiLineFileDelim)
|
||||||
want += fmt.Sprintf("key2<<%s\nvalue2\n%s", multiLineFileDelim, multiLineFileDelim)
|
want += fmt.Sprintf("key2<<%s\nvalue2\n%s\n", multiLineFileDelim, multiLineFileDelim)
|
||||||
if got := string(data); got != want {
|
if got := string(data); got != want {
|
||||||
t.Errorf("expected %q to be %q", got, want)
|
t.Errorf("expected %q to be %q", got, want)
|
||||||
}
|
}
|
||||||
|
|
@ -399,8 +399,8 @@ func TestAction_SetEnv(t *testing.T) {
|
||||||
t.Errorf("unable to read temp env file: %s", err)
|
t.Errorf("unable to read temp env file: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
want := fmt.Sprintf("key<<%s\nvalue\n%s", multiLineFileDelim, multiLineFileDelim)
|
want := fmt.Sprintf("key<<%s\nvalue\n%s\n", multiLineFileDelim, multiLineFileDelim)
|
||||||
want += fmt.Sprintf("key2<<%s\nvalue2\n%s", multiLineFileDelim, multiLineFileDelim)
|
want += fmt.Sprintf("key2<<%s\nvalue2\n%s\n", multiLineFileDelim, multiLineFileDelim)
|
||||||
if got := string(data); got != want {
|
if got := string(data); got != want {
|
||||||
t.Errorf("expected %q to be %q", got, want)
|
t.Errorf("expected %q to be %q", got, want)
|
||||||
}
|
}
|
||||||
|
|
@ -435,8 +435,8 @@ func TestAction_SetOutput(t *testing.T) {
|
||||||
t.Errorf("unable to read temp env file: %s", err)
|
t.Errorf("unable to read temp env file: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
want := fmt.Sprintf("key<<%s\nvalue\n%s", multiLineFileDelim, multiLineFileDelim)
|
want := fmt.Sprintf("key<<%s\nvalue\n%s\n", multiLineFileDelim, multiLineFileDelim)
|
||||||
want += fmt.Sprintf("key2<<%s\nvalue2\n%s", multiLineFileDelim, multiLineFileDelim)
|
want += fmt.Sprintf("key2<<%s\nvalue2\n%s\n", multiLineFileDelim, multiLineFileDelim)
|
||||||
if got := string(data); got != want {
|
if got := string(data); got != want {
|
||||||
t.Errorf("expected %q to be %q", got, want)
|
t.Errorf("expected %q to be %q", got, want)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue