From e29349a5ec3506a8d64513c9f2826d9ad3c239b7 Mon Sep 17 00:00:00 2001
From: Cheng Shao <terrorjack@type.dance>
Date: Sun, 6 Apr 2025 18:09:48 +0000
Subject: [PATCH] ci: cap playwright workers to 8

---
 tests/miso-ormolu.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/miso-ormolu.sh b/tests/miso-ormolu.sh
index 69bebf5..4cbc95c 100755
--- a/tests/miso-ormolu.sh
+++ b/tests/miso-ormolu.sh
@@ -18,7 +18,7 @@ curl -f -L --retry 5 https://github.com/haskell-wasm/playwright/archive/refs/hea
 cd examples/todomvc
 npm install
 npx playwright install --with-deps
-npx playwright test --workers=$CPUS
+npx playwright test --workers=$(($CPUS > 8 ? 8 : $CPUS))
 popd
 popd
 popd
-- 
GitLab