From 48d5e09ec14efee51ff4a1f7a59841d5a486b6c4 Mon Sep 17 00:00:00 2001 From: GraziellePinheiro <66564318+GraziellePinheiro@users.noreply.github.com> Date: Thu, 22 Aug 2024 15:46:58 -0300 Subject: [PATCH 1/3] Update maven.yml --- .github/workflows/maven.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 54afa9b..5238624 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -40,15 +40,15 @@ jobs: Invoke-WebRequest -Uri https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_win32.zip -OutFile chromedriver_win32.zip - if (-not (Test-Path -Path C:\drivers\chocolatey\bin)) { - New-Item -Path C:\drivers\chocolatey\bin -ItemType Directory -Force + if (-not (Test-Path -Path C:\\drivers\\chocolatey\\bin)) { + New-Item -Path C:\\drivers\\chocolatey\\bin -ItemType Directory -Force } - Expand-Archive -Path chromedriver_win32.zip -DestinationPath C:\drivers\chocolatey\bin -Force + Expand-Archive -Path chromedriver_win32.zip -DestinationPath C:\\drivers\\chocolatey\\bin -Force - Move-Item -Path 'C:\drivers\chocolatey\bin\chromedriver.exe' -Destination 'C:\drivers\chocolatey\bin\chromedriver.exe' -Force + Move-Item -Path 'C:\\drivers\\chocolatey\\bin\\chromedriver.exe' -Destination 'C:\\drivers\\chocolatey\\bin\\chromedriver.exe' -Force - name: Build and test with Maven run: mvn clean install From 5c3d5ab4ab0ccd169a2f59ced143a04ce363f188 Mon Sep 17 00:00:00 2001 From: GraziellePinheiro <66564318+GraziellePinheiro@users.noreply.github.com> Date: Thu, 22 Aug 2024 15:52:41 -0300 Subject: [PATCH 2/3] Update maven.yml --- .github/workflows/maven.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 5238624..2078447 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -36,19 +36,19 @@ jobs: - name: Install ChromeDriver run: | + # Baixar a versão mais recente do ChromeDriver + Invoke-WebRequest -Uri https://chromedriver.storage.googleapis.com/127.0.6533.90/chromedriver_win32.zip -OutFile chromedriver_win32.zip - Invoke-WebRequest -Uri https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_win32.zip -OutFile chromedriver_win32.zip - - - if (-not (Test-Path -Path C:\\drivers\\chocolatey\\bin)) { - New-Item -Path C:\\drivers\\chocolatey\\bin -ItemType Directory -Force + # Criar o diretório para o ChromeDriver se não existir + if (-not (Test-Path -Path C:\drivers\chocolatey\bin)) { + New-Item -Path C:\drivers\chocolatey\bin -ItemType Directory -Force } + # Extrair o ChromeDriver + Expand-Archive -Path chromedriver_win32.zip -DestinationPath C:\drivers\chocolatey\bin -Force - Expand-Archive -Path chromedriver_win32.zip -DestinationPath C:\\drivers\\chocolatey\\bin -Force - - - Move-Item -Path 'C:\\drivers\\chocolatey\\bin\\chromedriver.exe' -Destination 'C:\\drivers\\chocolatey\\bin\\chromedriver.exe' -Force + # Mover o executável para o diretório desejado + Move-Item -Path 'C:\drivers\chocolatey\bin\chromedriver.exe' -Destination 'C:\drivers\chocolatey\bin\chromedriver.exe' -Force - name: Build and test with Maven run: mvn clean install From d3409c1dbe79b15a86344e920144a71a96ca7273 Mon Sep 17 00:00:00 2001 From: GraziellePinheiro <66564318+GraziellePinheiro@users.noreply.github.com> Date: Thu, 22 Aug 2024 16:05:36 -0300 Subject: [PATCH 3/3] Update maven.yml --- .github/workflows/maven.yml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 2078447..ae9e5b6 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -34,22 +34,6 @@ jobs: restore-keys: | ${{ runner.os }}-maven- - - name: Install ChromeDriver - run: | - # Baixar a versão mais recente do ChromeDriver - Invoke-WebRequest -Uri https://chromedriver.storage.googleapis.com/127.0.6533.90/chromedriver_win32.zip -OutFile chromedriver_win32.zip - - # Criar o diretório para o ChromeDriver se não existir - if (-not (Test-Path -Path C:\drivers\chocolatey\bin)) { - New-Item -Path C:\drivers\chocolatey\bin -ItemType Directory -Force - } - - # Extrair o ChromeDriver - Expand-Archive -Path chromedriver_win32.zip -DestinationPath C:\drivers\chocolatey\bin -Force - - # Mover o executável para o diretório desejado - Move-Item -Path 'C:\drivers\chocolatey\bin\chromedriver.exe' -Destination 'C:\drivers\chocolatey\bin\chromedriver.exe' -Force - - name: Build and test with Maven run: mvn clean install