Skip to content

Commit 22f1dcd

Browse files
authored
run java tests with MS Edge (#10365)
1 parent 7033cb4 commit 22f1dcd

2 files changed

Lines changed: 26 additions & 4 deletions

File tree

.github/actions/setup-chrome/action.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,5 @@ runs:
2020
export CHROMEDRIVER_VERSION=`curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_MAJOR_VERSION%%.*}`
2121
curl -L -O "https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip"
2222
unzip chromedriver_linux64.zip && chmod +x chromedriver && sudo mv chromedriver /usr/local/bin
23-
export CHROMEDRIVER_VERSION=`curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_MAJOR_VERSION%%.*}`
24-
curl -L -O "https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip"
25-
unzip chromedriver_linux64.zip && chmod +x chromedriver && sudo mv chromedriver /usr/local/bin
26-
chromedriver -version
23+
chromedriver --version
2724
shell: bash
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Setup Edge and EdgeDriver'
2+
description: 'Setup Edge and EdgeDriver'
3+
inputs:
4+
version:
5+
description: 'Edge version'
6+
required: false
7+
default: 'stable'
8+
runs:
9+
using: "composite"
10+
steps:
11+
- run: |
12+
wget -q -O - https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
13+
echo "deb https://packages.microsoft.com/repos/edge stable main" | sudo tee -a /etc/apt/sources.list.d/microsoft-edge.list
14+
sudo apt-get update -qqy
15+
sudo apt-get -qqy install microsoft-edge-stable
16+
EDGE_VERSION=$(microsoft-edge-stable --version)
17+
EDGE_FULL_VERSION=${EDGE_VERSION%%.*}
18+
EDGE_MAJOR_VERSION=${EDGE_FULL_VERSION//[!0-9]}
19+
sudo rm /etc/apt/sources.list.d/microsoft-edge.list
20+
21+
export EDGE_DRIVER_VERSION=$(wget --no-verbose -O - "https://msedgedriver.azureedge.net/LATEST_RELEASE_${EDGE_MAJOR_VERSION}_LINUX" | tr -cd "\11\12\15\40-\176" | tr -d "\r")
22+
wget --no-verbose https://msedgedriver.azureedge.net/${EDGE_DRIVER_VERSION}/edgedriver_linux64.zip
23+
unzip edgedriver_linux64.zip && chmod +x msedgedriver && sudo mv msedgedriver /usr/local/bin
24+
msedgedriver --version
25+
shell: bash

0 commit comments

Comments
 (0)