Fixed property decode for github actions

This commit is contained in:
Mike Farah
2022-02-10 11:34:33 +11:00
parent e0d6b45651
commit 3ac531ce74
7 changed files with 77 additions and 27 deletions
+17
View File
@@ -23,6 +23,23 @@ EOM
assertEquals "$expected" "$X"
}
testInputPropertiesGitHubAction() {
cat >test.properties <<EOL
mike.things = hello
EOL
read -r -d '' expected << EOM
mike:
things: hello
EOM
X=$(cat /dev/null | ./yq e -p=props test.properties)
assertEquals "$expected" "$X"
X=$(cat /dev/null | ./yq ea -p=props test.properties)
assertEquals "$expected" "$X"
}
testInputXml() {
cat >test.yml <<EOL
<cat legs="4">BiBi</cat>