1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-11 17:50:58 +00:00

Add variadic version of hashFiles (#411)

This commit is contained in:
Peter Tissen 2020-11-09 18:08:57 +01:00 committed by GitHub
parent 3dbfe0ed90
commit 4b00c2754d
2 changed files with 10 additions and 5 deletions

View file

@ -83,6 +83,7 @@ func TestEvaluate(t *testing.T) {
{"(fromJSON('{\"foo\":\"bar\"}')).foo", "bar", ""},
{"(fromJson('{\"foo\":\"bar\"}')).foo", "bar", ""},
{"hashFiles('**/non-extant-files')", "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", ""},
{"hashFiles('**/non-extant-files', '**/more-non-extant-files')", "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", ""},
{"success()", "true", ""},
{"failure()", "false", ""},
{"always()", "true", ""},