Skip to content

Commit 41d038b

Browse files
authored
Tests: Run tests on both real Firefox ESRs
1. At the same time, there may be two supported versions of Firefox ESR. Run tests on both, installed locally. 2. Don't run tests on Firefox 115 on BrowserStack - it was added as there's an ESR version of Firefox 115, but ESR versions may be different, e.g. for some time ServiceWorker was disabled on ESR versions: https://bugzilla.mozilla.org/show_bug.cgi?id=1547023 Closes gh-582 Ref jquery/jquery#5547
1 parent 8f5205e commit 41d038b

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/browser-tests.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
- NAME: "Node"
2323
BROWSER: "chrome"
2424
MIGRATE_VERSION: "esmodules"
25+
- NAME: "Firefox ESR (new)"
26+
BROWSER: "firefox"
27+
MIGRATE_VERSION: "min"
28+
- NAME: "Firefox ESR (old)"
29+
BROWSER: "firefox"
30+
MIGRATE_VERSION: "min"
2531
steps:
2632
- name: Checkout
2733
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -39,6 +45,23 @@ jobs:
3945
restore-keys: |
4046
${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-
4147
48+
- name: Set download URL for Firefox ESR (old)
49+
run: |
50+
echo "FIREFOX_SOURCE_URL=https://download.mozilla.org/?product=firefox-esr-latest-ssl&lang=en-US&os=linux64" >> "$GITHUB_ENV"
51+
if: contains(matrix.NAME, 'Firefox ESR (old)')
52+
53+
- name: Set download URL for Firefox ESR (new)
54+
run: |
55+
echo "FIREFOX_SOURCE_URL=https://download.mozilla.org/?product=firefox-esr-next-latest-ssl&lang=en-US&os=linux64" >> "$GITHUB_ENV"
56+
if: contains(matrix.NAME, 'Firefox ESR (new)')
57+
58+
- name: Install Firefox ESR
59+
run: |
60+
wget --no-verbose $FIREFOX_SOURCE_URL -O - | tar -jx -C ${HOME}
61+
echo "PATH=${HOME}/firefox:$PATH" >> "$GITHUB_ENV"
62+
echo "FIREFOX_BIN=${HOME}/firefox/firefox" >> "$GITHUB_ENV"
63+
if: contains(matrix.NAME, 'Firefox ESR')
64+
4265
- name: Install dependencies
4366
run: npm install
4467

.github/workflows/browserstack.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
- 'Edge_latest-1'
3535
- 'Firefox_latest'
3636
- 'Firefox_latest-1'
37-
- 'Firefox_115'
3837
- '__iOS_18'
3938
- '__iOS_17'
4039
- '__iOS_16'

0 commit comments

Comments
 (0)