Skip to content

Commit

Permalink
Update chrome.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kishorekumar-anchala authored Jun 28, 2024
1 parent f3da62b commit 4c1c23e
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions .github/workflows/chrome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,18 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.101'

- name: Install ChromeDriver
- name: Setup Chrome
run: |
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
wget https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip
unzip chromedriver_linux64.zip -d /usr/local/bin/
sudo chmod +x /usr/local/bin/chromedriver
- name: Build
run: dotnet build --configuration Release

- name: Test
run: dotnet test --no-build --verbosity normal
sudo apt-get install -y libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
sudo apt-get install -f
google-chrome --version
wget https://chromedriver.storage.googleapis.com/2.41/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
sudo mv chromedriver /usr/bin/
sudo chown root:root /usr/bin/chromedriver
sudo chmod +x /usr/bin/chromedriver
chromedriver --version

0 comments on commit 4c1c23e

Please sign in to comment.