test(actions): drop duplicate cases and share the checks server

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-12 20:48:00 +02:00
1 parent 71d84b070b
commit 4a85bb3d40
5 files changed
+13 -29

No files matched your search

-2
View File
@@ -19,7 +19,6 @@ func TestWebhookCreateValidatesEventsAndTypes(t *testing.T) {
want string
}{
{[]string{"--events", "pushh"}, "--events must be create, delete, fork, push, issues"},
{[]string{"--events", "push,pull_request_review_approved"}, "--events must be"},
{[]string{"--type", "slackk"}, "--type must be gitea, gogs, slack"},
{[]string{"--type", "slack"}, "--type slack needs a channel: --config channel=#name"},
} {
@@ -50,7 +49,6 @@ func TestWebhookEventsCollapseCompleteGroups(t *testing.T) {
events []string
want string
}{
{[]string{"push"}, "push"},
{[]string{"issue_assign", "issue_comment", "issue_label", "issue_milestone", "issues", "push"}, "issues (5), push"},
{[]string{"issue_label", "issues"}, "issue_label, issues"},
{append([]string{"create"}, pulls...), "create, pull_request (8)"},