Handle wildcard branches

This commit is contained in:
Simon Engledew 2020-12-01 15:21:30 +00:00
parent ac1c081de8
commit c8ee1f4ef3
No known key found for this signature in database
GPG key ID: 84302E7B02FE8BCE
6 changed files with 130 additions and 18 deletions

View file

@ -246,3 +246,8 @@ test("formatWorkflowCause()", (t) => {
t.deepEqual(message, "CheckoutWrongHead,PathsSpecified");
t.deepEqual(actionsutil.formatWorkflowCause([]), undefined);
});
test("patternsOverlap()", (t) => {
t.false(actionsutil.patternsOverlap("main-*", "main"));
t.true(actionsutil.patternsOverlap("*", "*"));
});