mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-14 22:09:26 +00:00
@@ -23,6 +23,12 @@ function Get-ChromiumVersion {
|
||||
return $chromiumVersion
|
||||
}
|
||||
|
||||
function Get-EdgeVersion {
|
||||
$edgeVersion = (microsoft-edge --version).trim()
|
||||
$aptSourceRepo = Get-AptSourceRepository -PackageName "microsoft-edge"
|
||||
return "$edgeVersion (apt source repository: $aptSourceRepo)"
|
||||
}
|
||||
|
||||
function Get-SeleniumVersion {
|
||||
$seleniumBinaryName = Get-ToolsetValue "selenium.binary_name"
|
||||
$fullSeleniumVersion = (Get-ChildItem "/usr/share/java/${seleniumBinaryName}-*").Name -replace "${seleniumBinaryName}-"
|
||||
|
||||
@@ -231,6 +231,7 @@ $browsersAndDriversList = @(
|
||||
(Get-ChromeVersion),
|
||||
(Get-ChromeDriverVersion),
|
||||
(Get-ChromiumVersion),
|
||||
(Get-EdgeVersion),
|
||||
(Get-SeleniumVersion)
|
||||
)
|
||||
|
||||
|
||||
24
images/linux/scripts/installers/microsoft-edge.sh
Normal file
24
images/linux/scripts/installers/microsoft-edge.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash -e
|
||||
################################################################################
|
||||
## File: microsoft-edge.sh
|
||||
## Desc: Installs Microsoft Edge
|
||||
################################################################################
|
||||
|
||||
REPO_URL="https://packages.microsoft.com/repos/edge"
|
||||
gpg_key="/usr/share/keyrings/microsoft-edge.gpg"
|
||||
repo_path="/etc/apt/sources.list.d/microsoft-edge.list"
|
||||
|
||||
|
||||
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > $gpg_key
|
||||
# Specify an arch as Microsoft repository supports armhf and arm64 as well
|
||||
echo "deb [arch=amd64 signed-by=$gpg_key] $REPO_URL stable main" > $repo_path
|
||||
|
||||
apt-get update
|
||||
apt-get install --no-install-recommends microsoft-edge-stable
|
||||
|
||||
rm $gpg_key
|
||||
rm $repo_path
|
||||
|
||||
echo "microsoft-edge $REPO_URL" >> $HELPER_SCRIPTS/apt-sources.txt
|
||||
|
||||
invoke_tests "Browsers" "Edge"
|
||||
@@ -18,6 +18,12 @@ Describe "Chrome" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Edge" {
|
||||
It "Edge" {
|
||||
"microsoft-edge --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Chromium" {
|
||||
It "Chromium" {
|
||||
"chromium-browser --version" | Should -ReturnZeroExitCode
|
||||
|
||||
@@ -203,6 +203,7 @@
|
||||
"{{template_dir}}/scripts/installers/dotnetcore-sdk.sh",
|
||||
"{{template_dir}}/scripts/installers/erlang.sh",
|
||||
"{{template_dir}}/scripts/installers/firefox.sh",
|
||||
"{{template_dir}}/scripts/installers/microsoft-edge.sh",
|
||||
"{{template_dir}}/scripts/installers/gcc.sh",
|
||||
"{{template_dir}}/scripts/installers/gfortran.sh",
|
||||
"{{template_dir}}/scripts/installers/git.sh",
|
||||
|
||||
@@ -204,6 +204,7 @@
|
||||
"{{template_dir}}/scripts/installers/dotnetcore-sdk.sh",
|
||||
"{{template_dir}}/scripts/installers/erlang.sh",
|
||||
"{{template_dir}}/scripts/installers/firefox.sh",
|
||||
"{{template_dir}}/scripts/installers/microsoft-edge.sh",
|
||||
"{{template_dir}}/scripts/installers/gcc.sh",
|
||||
"{{template_dir}}/scripts/installers/gfortran.sh",
|
||||
"{{template_dir}}/scripts/installers/git.sh",
|
||||
|
||||
@@ -273,6 +273,7 @@ build {
|
||||
"${path.root}/scripts/installers/codeql-bundle.sh",
|
||||
"${path.root}/scripts/installers/containers.sh",
|
||||
"${path.root}/scripts/installers/dotnetcore-sdk.sh",
|
||||
"${path.root}/scripts/installers/microsoft-edge.sh",
|
||||
"${path.root}/scripts/installers/gcc.sh",
|
||||
"${path.root}/scripts/installers/gfortran.sh",
|
||||
"${path.root}/scripts/installers/git.sh",
|
||||
|
||||
Reference in New Issue
Block a user