feat(cli): rework developer CLI with non-blocking tasks and GitHub CI checks (#6651)

This commit is contained in:
Thomas authored and GitHub committed 2026-08-21 18:59:11 +02:00
1 parent f0f9539466
commit 81aa704537
56 files changed
+7950 -2548

No files matched your search

@@ -0,0 +1,32 @@
package registry
import (
"context"
"os"
"testing"
"time"
)
func TestPublishedTagsIntegration(t *testing.T) {
if testing.Short() || os.Getenv("HOMARR_INTEGRATION_TEST") != "1" {
t.Skip("skipping GHCR integration test; set HOMARR_INTEGRATION_TEST=1 to run")
}
ctx, cancel := context.WithTimeout(context.Background(), 25*time.Second)
defer cancel()
start := time.Now()
tags, err := PublishedTags(ctx, true)
if err != nil {
t.Skipf("GHCR unreachable: %v", err)
}
t.Logf("fetched %d tags in %s", len(tags), time.Since(start))
if len(tags) == 0 {
t.Fatal("expected at least one published tag")
}
found := 0
for tag := range tags {
if found < 5 {
t.Log(" ", tag)
found++
}
}
}