Reconcile no-Actions local release workflow with accepted Hop implementation
Hop-State: A_06FN5GEZTNDD5V7A7PXHBR0 Hop-Proposal: R_06FN5GDDA8WVH1V6JW0FBY0 Hop-Task: T_06FN3MBF98GWD4NA5PA1RWG Hop-Attempt: AT_06FN5FPYNDP5C49S0G52NQG
This commit is contained in:
@@ -65,3 +65,21 @@ func TestProductDocumentationUsesCanonicalGiteaHost(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestDistributionDoesNotRequireGiteaActions(t *testing.T) {
|
||||
root := filepath.Clean(filepath.Join("..", ".."))
|
||||
workflows, err := filepath.Glob(filepath.Join(root, ".gitea", "workflows", "*"))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if len(workflows) != 0 {
|
||||
t.Fatalf("Gitea Actions workflows remain enabled in source: %v", workflows)
|
||||
}
|
||||
contents, err := os.ReadFile(filepath.Join(root, "wiki", "Release-Checklist.md"))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if strings.Contains(string(contents), ".gitea/workflows/") {
|
||||
t.Fatal("release checklist still depends on a Gitea Actions workflow")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user