mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 14:17:22 +00:00
Add PPA repository for Firefox as default (#6528)
This commit is contained in:
@@ -10,7 +10,8 @@ function Get-ChromeDriverVersion {
|
|||||||
|
|
||||||
function Get-FirefoxVersion {
|
function Get-FirefoxVersion {
|
||||||
$firefoxVersion = firefox --version
|
$firefoxVersion = firefox --version
|
||||||
return $firefoxVersion
|
$aptSourceRepo = Get-AptSourceRepository -PackageName "mozillateam"
|
||||||
|
return "$firefoxVersion (apt source repository: $aptSourceRepo)"
|
||||||
}
|
}
|
||||||
|
|
||||||
function Get-GeckodriverVersion {
|
function Get-GeckodriverVersion {
|
||||||
|
|||||||
@@ -246,16 +246,11 @@ $browsersAndDriversList = @(
|
|||||||
(Get-ChromiumVersion),
|
(Get-ChromiumVersion),
|
||||||
(Get-EdgeVersion),
|
(Get-EdgeVersion),
|
||||||
(Get-EdgeDriverVersion),
|
(Get-EdgeDriverVersion),
|
||||||
(Get-SeleniumVersion)
|
(Get-SeleniumVersion),
|
||||||
|
(Get-FirefoxVersion),
|
||||||
|
(Get-GeckodriverVersion)
|
||||||
)
|
)
|
||||||
|
|
||||||
if ((Test-IsUbuntu18) -or (Test-IsUbuntu20)) {
|
|
||||||
$browsersAndDriversList += @(
|
|
||||||
(Get-FirefoxVersion),
|
|
||||||
(Get-GeckodriverVersion)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
$markdown += New-MDList -Style Unordered -Lines $browsersAndDriversList
|
$markdown += New-MDList -Style Unordered -Lines $browsersAndDriversList
|
||||||
$markdown += New-MDHeader "Environment variables" -Level 4
|
$markdown += New-MDHeader "Environment variables" -Level 4
|
||||||
$markdown += Build-BrowserWebdriversEnvironmentTable | New-MDTable
|
$markdown += Build-BrowserWebdriversEnvironmentTable | New-MDTable
|
||||||
|
|||||||
@@ -7,8 +7,18 @@
|
|||||||
# Source the helpers for use with the script
|
# Source the helpers for use with the script
|
||||||
source $HELPER_SCRIPTS/install.sh
|
source $HELPER_SCRIPTS/install.sh
|
||||||
|
|
||||||
|
FIREFOX_REPO="ppa:mozillateam/ppa"
|
||||||
|
|
||||||
# Install Firefox
|
# Install Firefox
|
||||||
apt-get install -y firefox
|
add-apt-repository $FIREFOX_REPO -y
|
||||||
|
apt-get update
|
||||||
|
apt-get install --target-release 'o=LP-PPA-mozillateam' -y firefox
|
||||||
|
|
||||||
|
# Remove source repo's
|
||||||
|
add-apt-repository --remove $FIREFOX_REPO
|
||||||
|
|
||||||
|
# Document apt source repo's
|
||||||
|
echo "mozillateam $FIREFOX_REPO" >> $HELPER_SCRIPTS/apt-sources.txt
|
||||||
|
|
||||||
# add to gloabl system preferences for firefox locale en_US, because other browsers have en_US local.
|
# add to gloabl system preferences for firefox locale en_US, because other browsers have en_US local.
|
||||||
# Default firefox local is en_GB
|
# Default firefox local is en_GB
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Describe "Firefox" -Skip:(Test-IsUbuntu22) {
|
Describe "Firefox" {
|
||||||
It "Firefox" {
|
It "Firefox" {
|
||||||
"sudo -i firefox --version" | Should -ReturnZeroExitCode
|
"sudo -i firefox --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -287,6 +287,7 @@ build {
|
|||||||
"${path.root}/scripts/installers/codeql-bundle.sh",
|
"${path.root}/scripts/installers/codeql-bundle.sh",
|
||||||
"${path.root}/scripts/installers/containers.sh",
|
"${path.root}/scripts/installers/containers.sh",
|
||||||
"${path.root}/scripts/installers/dotnetcore-sdk.sh",
|
"${path.root}/scripts/installers/dotnetcore-sdk.sh",
|
||||||
|
"${path.root}/scripts/installers/firefox.sh",
|
||||||
"${path.root}/scripts/installers/microsoft-edge.sh",
|
"${path.root}/scripts/installers/microsoft-edge.sh",
|
||||||
"${path.root}/scripts/installers/gcc.sh",
|
"${path.root}/scripts/installers/gcc.sh",
|
||||||
"${path.root}/scripts/installers/gfortran.sh",
|
"${path.root}/scripts/installers/gfortran.sh",
|
||||||
|
|||||||
Reference in New Issue
Block a user