Skip to content

Commit d53575c

Browse files
committed
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. Contrary to what we did on `main`, still run tests on Firefox 115 on BrowserStack - on `main`, we deleted it since we support only the versions supported upstream. In jQuery Migrate 3.x, we're testing on all versions matching ESR lines starting with Firefox 48, so for consistency let's keep Firefox 115 there as well. Closes gh-582 Ref jquery/jquery#5547 (cherry picked from commit 41d038b)
1 parent 7f7f17a commit d53575c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
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

0 commit comments

Comments
 (0)