Parse env file discard utf8 bom (#38)

* powershell 5 may add the BOM even when explicitly using utf8

* add test + apply to GITHUB_PATH as well
This commit is contained in:
ChristopherHX
2025-02-12 21:26:55 +01:00
committed by GitHub
parent d930a546ec
commit 27511e3003
7 changed files with 110 additions and 1 deletions

View File

@@ -456,6 +456,8 @@ func TestRunEventHostEnvironment(t *testing.T) {
tables = append(tables, []TestJobFileInfo{
{workdir, "windows-prepend-path", "push", "", platforms, secrets},
{workdir, "windows-add-env", "push", "", platforms, secrets},
{workdir, "windows-prepend-path-powershell-5", "push", "", platforms, secrets},
{workdir, "windows-add-env-powershell-5", "push", "", platforms, secrets},
{workdir, "windows-shell-cmd", "push", "", platforms, secrets},
}...)
} else {