From 91bd3f8201ac84eb43a7ce01ede649b57e6b38fd Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Mon, 1 Sep 2025 08:38:31 -0700 Subject: [PATCH] Optionally test in a subset of browsers locally When run with --not-actually-all, scripts/run-all-browsers skips all but the oldest and newest supported Firefox and Safari versions. This provides a faster but still quite reliable mergeability check. CI still tests against all supported browsers. --- scripts/run-all-browsers | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/scripts/run-all-browsers b/scripts/run-all-browsers index d785b069..4869b568 100755 --- a/scripts/run-all-browsers +++ b/scripts/run-all-browsers @@ -28,13 +28,26 @@ failfile=`mktemp -t jasmine-results.XXXXXX` || exit 1 run_browser chrome latest run_browser firefox latest -run_browser firefox 140 -run_browser firefox 128 -run_browser firefox 115 +if [ "$1" = "--not-actually-all" ]; then + echo "SKIPPED: firefox 140" >> "$passfile" + echo "SKIPPED: firefox 128" >> "$passfile" + echo "SKIPPED: firefox 115" >> "$passfile" +else + run_browser firefox 140 + run_browser firefox 128 + run_browser firefox 115 +fi run_browser firefox 102 + + run_browser safari 17 -run_browser safari 16 +if [ "$1" = "--not-actually-all" ]; then + echo "SKIPPED: safari 16" >> "$passfile" +else + run_browser safari 16 +fi run_browser safari 15 + run_browser MicrosoftEdge latest echo