From 5590e07dfa874fb23cbacb49450524b9aa7b412a Mon Sep 17 00:00:00 2001 From: titusfortner Date: Wed, 1 Nov 2023 16:59:39 -0500 Subject: [PATCH] [ci] remove drivers from github runners --- .github/workflows/dotnet-examples.yml | 10 ++++++++++ .github/workflows/java-examples.yml | 10 ++++++++++ .github/workflows/js-examples.yml | 10 ++++++++++ .github/workflows/kotlin-examples.yml | 10 ++++++++++ .github/workflows/python-examples.yml | 10 ++++++++++ .github/workflows/ruby-examples.yml | 10 ++++++++++ 6 files changed, 60 insertions(+) diff --git a/.github/workflows/dotnet-examples.yml b/.github/workflows/dotnet-examples.yml index 922095170f18..5a3af9735be6 100644 --- a/.github/workflows/dotnet-examples.yml +++ b/.github/workflows/dotnet-examples.yml @@ -57,6 +57,16 @@ jobs: echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> "$GITHUB_ENV" echo "EDGE_BIN=${{ steps.setup-edge.outputs.edge-path }}" >> "$GITHUB_ENV" echo "FF_BIN=${{ steps.setup-firefox.outputs.firefox-path }}" >> "$GITHUB_ENV" + - name: Remove driver directories Windows + if: matrix.os == 'windows' + run: | + rm "$env:ChromeWebDriver" -r -v + rm "$env:EdgeWebDriver" -r -v + rm "$env:GeckoWebDriver" -r -v + - name: Remove driver directories Non-Windows + if: matrix.os != 'windows' + run: | + sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER - name: Start Xvfb if: matrix.os == 'ubuntu-latest' run: Xvfb :99 & diff --git a/.github/workflows/java-examples.yml b/.github/workflows/java-examples.yml index 8e3e3ebf19d4..19d3adf172f3 100644 --- a/.github/workflows/java-examples.yml +++ b/.github/workflows/java-examples.yml @@ -64,6 +64,16 @@ jobs: echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> "$GITHUB_ENV" echo "EDGE_BIN=/opt/hostedtoolcache/msedge/stable/x64/msedge" >> "$GITHUB_ENV" echo "FF_BIN=/opt/hostedtoolcache/firefox/latest/x64/firefox" >> "$GITHUB_ENV" + - name: Remove driver directories Windows + if: matrix.os == 'windows' + run: | + rm "$env:ChromeWebDriver" -r -v + rm "$env:EdgeWebDriver" -r -v + rm "$env:GeckoWebDriver" -r -v + - name: Remove driver directories Non-Windows + if: matrix.os != 'windows' + run: | + sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER - name: Start Xvfb if: matrix.os == 'ubuntu-latest' run: Xvfb :99 & diff --git a/.github/workflows/js-examples.yml b/.github/workflows/js-examples.yml index 64dcb2587269..1cf57eeb6cc3 100644 --- a/.github/workflows/js-examples.yml +++ b/.github/workflows/js-examples.yml @@ -64,6 +64,16 @@ jobs: echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> "$GITHUB_ENV" echo "EDGE_BIN=/opt/hostedtoolcache/msedge/stable/x64/msedge" >> "$GITHUB_ENV" echo "FF_BIN=/opt/hostedtoolcache/firefox/latest/x64/firefox" >> "$GITHUB_ENV" + - name: Remove driver directories Windows + if: matrix.os == 'windows' + run: | + rm "$env:ChromeWebDriver" -r -v + rm "$env:EdgeWebDriver" -r -v + rm "$env:GeckoWebDriver" -r -v + - name: Remove driver directories Non-Windows + if: matrix.os != 'windows' + run: | + sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER - name: Start Xvfb if: matrix.os == 'ubuntu-latest' run: Xvfb :99 & diff --git a/.github/workflows/kotlin-examples.yml b/.github/workflows/kotlin-examples.yml index 9863eb47d08c..fe339d49cecb 100644 --- a/.github/workflows/kotlin-examples.yml +++ b/.github/workflows/kotlin-examples.yml @@ -64,6 +64,16 @@ jobs: echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> "$GITHUB_ENV" echo "EDGE_BIN=/opt/hostedtoolcache/msedge/stable/x64/msedge" >> "$GITHUB_ENV" echo "FF_BIN=/opt/hostedtoolcache/firefox/latest/x64/firefox" >> "$GITHUB_ENV" + - name: Remove driver directories Windows + if: matrix.os == 'windows' + run: | + rm "$env:ChromeWebDriver" -r -v + rm "$env:EdgeWebDriver" -r -v + rm "$env:GeckoWebDriver" -r -v + - name: Remove driver directories Non-Windows + if: matrix.os != 'windows' + run: | + sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER - name: Start Xvfb if: matrix.os == 'ubuntu-latest' run: Xvfb :99 & diff --git a/.github/workflows/python-examples.yml b/.github/workflows/python-examples.yml index c12d96c9db0a..3a8aa1d188a1 100644 --- a/.github/workflows/python-examples.yml +++ b/.github/workflows/python-examples.yml @@ -64,6 +64,16 @@ jobs: echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> "$GITHUB_ENV" echo "EDGE_BIN=/opt/hostedtoolcache/msedge/stable/x64/msedge" >> "$GITHUB_ENV" echo "FF_BIN=/opt/hostedtoolcache/firefox/latest/x64/firefox" >> "$GITHUB_ENV" + - name: Remove driver directories Windows + if: matrix.os == 'windows' + run: | + rm "$env:ChromeWebDriver" -r -v + rm "$env:EdgeWebDriver" -r -v + rm "$env:GeckoWebDriver" -r -v + - name: Remove driver directories Non-Windows + if: matrix.os != 'windows' + run: | + sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER - name: Start Xvfb if: matrix.os == 'ubuntu-latest' run: Xvfb :99 & diff --git a/.github/workflows/ruby-examples.yml b/.github/workflows/ruby-examples.yml index 8480068a74f3..0d83eb0b2146 100644 --- a/.github/workflows/ruby-examples.yml +++ b/.github/workflows/ruby-examples.yml @@ -64,6 +64,16 @@ jobs: echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> "$GITHUB_ENV" echo "EDGE_BIN=/opt/hostedtoolcache/msedge/stable/x64/msedge" >> "$GITHUB_ENV" echo "FF_BIN=/opt/hostedtoolcache/firefox/latest/x64/firefox" >> "$GITHUB_ENV" + - name: Remove driver directories Windows + if: matrix.os == 'windows' + run: | + rm "$env:ChromeWebDriver" -r -v + rm "$env:EdgeWebDriver" -r -v + rm "$env:GeckoWebDriver" -r -v + - name: Remove driver directories Non-Windows + if: matrix.os != 'windows' + run: | + sudo rm -rf $CHROMEWEBDRIVER $EDGEWEBDRIVER $GECKOWEBDRIVER - name: Start Xvfb if: matrix.os == 'ubuntu-latest' run: Xvfb :99 &