From 103a3d9fc8bcbb9f60fd6144552c8fae635a9bc0 Mon Sep 17 00:00:00 2001 From: Guillaume MORET <90462045+AyakorK@users.noreply.github.com> Date: Tue, 13 Aug 2024 09:46:56 +0200 Subject: [PATCH] fix: Downgrade chromedriver to fix failing test (#572) --- .github/workflows/ci_cd.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 2ecea8eaef..828762d1aa 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -6,6 +6,7 @@ env: SIMPLECOV: "true" RSPEC_FORMAT: "documentation" RUBY_VERSION: 3.0.6 + CHROME_VERSION: 126.0.6478.182 RAILS_ENV: test NODE_VERSION: 16.9.1 RUBYOPT: '-W:no-deprecated' @@ -87,6 +88,11 @@ jobs: with: ruby-version: ${{ env.RUBY_VERSION }} bundler-cache: true + - run: | + wget --no-verbose -O /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${{env.CHROME_VERSION}}-1_amd64.deb + sudo dpkg -i /tmp/chrome.deb + rm /tmp/chrome.deb + name: Install Chrome version ${{ env.CHROME_VERSION }} - uses: actions/setup-node@v3 with: node-version: ${{ env.NODE_VERSION }} @@ -105,9 +111,11 @@ jobs: - run: mkdir -p ./spec/tmp/screenshots name: Create the screenshots folder - uses: nanasess/setup-chromedriver@v2 + with: + chromedriver-version: ${{ env.CHROME_VERSION }} - run: bundle exec rake "test:run[exclude, spec/system/**/*_spec.rb, ${{ matrix.slice }}]" name: RSpec - #- run: ./.github/upload_coverage.sh decidim-app $GITHUB_EVENT_PATH + # - run: ./.github/upload_coverage.sh decidim-app $GITHUB_EVENT_PATH # name: Upload coverage - uses: actions/upload-artifact@v3 if: always() @@ -171,9 +179,11 @@ jobs: - run: mkdir -p ./spec/tmp/screenshots name: Create the screenshots folder - uses: nanasess/setup-chromedriver@v2 + with: + chromedriver-version: ${{ env.CHROME_VERSION }} - run: bundle exec rake "test:run[include, spec/system/**/*_spec.rb, ${{ matrix.slice }}]" name: RSpec - #- run: ./.github/upload_coverage.sh decidim-app $GITHUB_EVENT_PATH + # - run: ./.github/upload_coverage.sh decidim-app $GITHUB_EVENT_PATH # name: Upload coverage - uses: actions/upload-artifact@v3 if: always()