Releasetest/release workflow (#1869)

* Test release workflow

* Update release.yml

* Update release.yml

* add linux deps

* Update release.yml

* Update release.yml

* Update release.yml

* Update release.yml

* Update release.yml

* Update release.yml

* Update release.yml

* Update release.yml

* Update release.yml

* Fix: Misc tests

* Fix: Misc tests + linux build tags

* Fix: Bindings tests + move templates to pkg. Add json schema for templates

* Fix: template tests

* Add tests to release workflow. Test for go 1.18 + go 1.19
Fix: ignore .m files for non darwin builds. Fix watcher test. Fix warning in clilogger.

* Fix release pipeline

* Matrix for tests

* Rename templates to make tests work

* Update template test

* Debug template test

* Debug template test

* Debug template test

* Fix gitignore

* Update release.yml
This commit is contained in:
Lea Anthony
2022-09-18 08:55:21 +10:00
committed by GitHub
parent 96ffe5b7b2
commit b93cdcd942
445 changed files with 626 additions and 638 deletions
+1 -1
View File
@@ -32,6 +32,6 @@ func TestParse(t *testing.T) {
for _, d := range baddata {
result, err := Parse(d)
i.True(err != nil)
i.Equal(result, "")
i.Equal(result, nil)
}
}
+3 -3
View File
@@ -18,7 +18,7 @@ func TestParseAnsi16SingleColour(t *testing.T) {
{"No formatting", "Hello World", "Hello World", "", false},
{"Black", "\u001b[0;30mHello World\033[0m", "Hello World", "Black", false},
{"Red", "\u001b[0;31mHello World\033[0m", "Hello World", "Maroon", false},
{"Green", "\u001b[0;32m\033[0m", "", "Green", false},
{"Green", "\u001b[0;32mHello World\033[0m", "Hello World", "Green", false},
{"Yellow", "\u001b[0;33mπŸ˜€\033[0m", "πŸ˜€", "Olive", false},
{"Blue", "\u001b[0;34m123\033[0m", "123", "Navy", false},
{"Purple", "\u001b[0;35mπŸ‘©πŸ½β€πŸ”§\u001B[0m", "πŸ‘©πŸ½β€πŸ”§", "Purple", false},
@@ -26,7 +26,7 @@ func TestParseAnsi16SingleColour(t *testing.T) {
{"White", "\u001b[0;37m[0;37m\033[0m", "[0;37m", "Silver", false},
{"Black Bold", "\u001b[1;30mHello World\033[0m", "Hello World", "Grey", false},
{"Red Bold", "\u001b[1;31mHello World\033[0m", "Hello World", "Red", false},
{"Green Bold", "\u001b[1;32m\033[0m", "", "Lime", false},
{"Green Bold", "\u001b[1;32mTest\033[0m", "Test", "Lime", false},
{"Yellow Bold", "\u001b[1;33mπŸ˜€\033[0m", "πŸ˜€", "Yellow", false},
{"Blue Bold", "\u001b[1;34m123\033[0m", "123", "Blue", false},
{"Purple Bold", "\u001b[1;35mπŸ‘©πŸ½β€πŸ”§\u001B[0m", "πŸ‘©πŸ½β€πŸ”§", "Fuchsia", false},
@@ -109,7 +109,7 @@ func TestParseAnsi16MultiColour(t *testing.T) {
}, false},
{"Green Invisible & Yellow Invisible & Strikethrough", "\u001B[8;32mπŸ‘©πŸ½β€πŸ”§\u001B[0m\u001B[9;33mπŸ‘©πŸ½β€πŸ”§\u001B[0m", []*StyledText{
{Label: "πŸ‘©πŸ½β€πŸ”§", FgCol: &Col{Name: "Green"}, Style: Invisible},
{Label: "πŸ‘©πŸ½β€πŸ”§", FgCol: &Col{Name: "Olive"}, Style: Invisible | Strikethrough},
{Label: "πŸ‘©πŸ½β€πŸ”§", FgCol: &Col{Name: "Olive"}, Style: Strikethrough},
}, false},
}
for _, tt := range tests {