Skip to content

Commit 6c3332b

Browse files
committed
fix: update workflow
1 parent f7d9755 commit 6c3332b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/js-tests.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ jobs:
2929
- name: Setup npm
3030
run: npm i -g [email protected]
3131

32-
- name: Install Firefox 123.0
32+
- name: Install Latest Firefox
3333
run: |
34-
sudo apt-get purge firefox
35-
wget "https://ftp.mozilla.org/pub/firefox/releases/123.0/linux-x86_64/en-US/firefox-123.0.tar.bz2"
36-
tar -xjf firefox-123.0.tar.bz2
34+
sudo apt-get purge -y firefox
35+
LATEST_VERSION=$(curl -s https://product-details.mozilla.org/1.0/firefox_versions.json | jq -r '.LATEST_FIREFOX_VERSION')
36+
echo "Latest Firefox version is $LATEST_VERSION"
37+
wget "https://ftp.mozilla.org/pub/firefox/releases/${LATEST_VERSION}/linux-x86_64/en-US/firefox-${LATEST_VERSION}.tar.xz" -O firefox.tar.xz
38+
tar -xJf firefox.tar.xz
3739
sudo mv firefox /opt/firefox
38-
sudo ln -s /opt/firefox/firefox /usr/bin/firefox
40+
sudo ln -sf /opt/firefox/firefox /usr/bin/firefox
3941
4042
- name: Install Required System Packages
4143
run: sudo apt-get update && sudo apt-get install -y libxmlsec1-dev ubuntu-restricted-extras xvfb

0 commit comments

Comments
 (0)