Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

ci: skip integration tests in CI (no Chrome available)

Mario4653f63bb47a
diff --git a/integration_test.go b/integration_test.go
index 2ce96a86..578be969 100644
--- a/integration_test.go
+++ b/integration_test.go
@@ -10,6 +10,7 @@ import (
"math/rand"
"net/http"
"net/http/httptest"
+ "os"
"strings"
"testing"
"time"
@@ -19,8 +20,16 @@ import (
"github.com/chromedp/chromedp"
)
+func skipIfNoChrome(t *testing.T) {
+ t.Helper()
+ if os.Getenv("CI") != "" {
+ t.Skip("skipping integration test in CI (no Chrome)")
+ }
+}
+
func testBridge(t *testing.T) (*Bridge, func()) {
t.Helper()
+ skipIfNoChrome(t)
opts := append(chromedp.DefaultExecAllocatorOptions[:],
chromedp.Headless,