Skip to content

Commit 8c07d8e

Browse files
sd109MoteHue
authored andcommitted
Downgrade Firefox version to fix failing robot-framework tests (azimuth-cloud#211)
1 parent 288edff commit 8c07d8e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/actions/test/action.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,28 @@ runs:
3030
source ./bin/activate "$AZIMUTH_CONFIG_ENVIRONMENT" "$AZIMUTH_ENVIRONMENT"
3131
ansible-playbook azimuth_cloud.azimuth_ops.generate_tests -e @extra-vars.yml
3232
33+
- name: Downgrade installed firefox browser version
34+
shell: bash
35+
# Based on https://support.mozilla.org/en-US/kb/install-firefox-linux
36+
run: |
37+
set -e
38+
# Import Mozilla repo key
39+
sudo install -d -m 0755 /etc/apt/keyrings
40+
wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | sudo tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null
41+
# Check fingerprint
42+
if [[ $(gpg -n -q --import --import-options import-show /etc/apt/keyrings/packages.mozilla.org.asc | grep 35BAA0B33E9EB396F59CA838C0BA5CE6DC6315A3) ]]; then
43+
echo "Fingerprint matches"
44+
else
45+
echo "Mozilla repo fingerprint doesn't match expected"
46+
exit 1
47+
fi
48+
# Add repo to sources
49+
echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null
50+
# Install Firefox extended support release
51+
sudo apt update
52+
sudo apt remove firefox # Uninstall default version (1.136.0)
53+
sudo apt install -y firefox-esr # Install older version (1.128)
54+
3355
- name: Run test suite
3456
shell: bash
3557
run: |

0 commit comments

Comments
 (0)