From a5551b97ddcb9cbd02f318c37d10fc56536599b9 Mon Sep 17 00:00:00 2001 From: Miki Date: Wed, 24 Apr 2024 21:20:20 -0700 Subject: [PATCH] Lock Chrome version until ChromeDriver's release pipeline is fixed (#6630) Signed-off-by: Miki --- .github/workflows/build_and_test_workflow.yml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/.github/workflows/build_and_test_workflow.yml b/.github/workflows/build_and_test_workflow.yml index 2237590df790..26340acf2175 100644 --- a/.github/workflows/build_and_test_workflow.yml +++ b/.github/workflows/build_and_test_workflow.yml @@ -198,6 +198,28 @@ jobs: restore-keys: | yarn- + # Lock Chrome version until ChromeDriver's release pipeline is fixed + - name: Download Chrome + id: download-chrome + uses: abhi1693/setup-browser@v0.3.5 + with: + browser: chrome + # v122 + version: 1250586 + + - name: Setup Chrome (Linux) + if: matrix.os != 'windows-latest' + run: | + sudo rm -rf /usr/bin/google-chrome /opt/google/chrome + sudo ln -s ${{steps.download-chrome.outputs.path}}/${{steps.download-chrome.outputs.binary}} /usr/bin/google-chrome + + - name: Setup Chrome (Windows) + if: matrix.os == 'windows-latest' + run: | + New-Item -Force -Type Directory "$Env:Programfiles/Google/Chrome/Application" + Remove-Item -Recurse -Force "$Env:Programfiles/Google/Chrome/Application/*" + Copy-Item -Force -Recurse "${{steps.download-chrome.outputs.path}}/*" "$Env:Programfiles/Google/Chrome/Application" + - name: Setup chromedriver run: node scripts/upgrade_chromedriver.js @@ -292,6 +314,28 @@ jobs: restore-keys: | yarn- + # Lock Chrome version until ChromeDriver's release pipeline is fixed + - name: Download Chrome + id: download-chrome + uses: abhi1693/setup-browser@v0.3.5 + with: + browser: chrome + # v122 + version: 1250586 + + - name: Setup Chrome (Linux) + if: matrix.os != 'windows-latest' + run: | + sudo rm -rf /usr/bin/google-chrome /opt/google/chrome + sudo ln -s ${{steps.download-chrome.outputs.path}}/${{steps.download-chrome.outputs.binary}} /usr/bin/google-chrome + + - name: Setup Chrome (Windows) + if: matrix.os == 'windows-latest' + run: | + New-Item -Force -Type Directory "$Env:Programfiles/Google/Chrome/Application" + Remove-Item -Recurse -Force "$Env:Programfiles/Google/Chrome/Application/*" + Copy-Item -Force -Recurse "${{steps.download-chrome.outputs.path}}/*" "$Env:Programfiles/Google/Chrome/Application" + - name: Setup chromedriver run: node scripts/upgrade_chromedriver.js