From 7c74e8e1aa0a45730c03fb882e6b2f65297ea720 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Thu, 15 May 2025 20:14:12 +0000 Subject: [PATCH] Backported r23762 to 5.1-stable (#42688). git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@23777 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .github/workflows/tests.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4d5e0e200..d748b1ec5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -106,3 +106,23 @@ jobs: LC_ALL: en_US.ISO8859-1 run: | bin/rails test test/unit/repository_bazaar_test.rb + + # System tests use Chrome and ChromeDriver installed on the GitHub Actions Ubuntu image. + # They are generally updated to the latest stable versions. + - name: Run system tests + run: | + google-chrome --version + bin/rails test:system + env: + GOOGLE_CHROME_OPTS_ARGS: headless,disable-gpu,no-sandbox,disable-dev-shm-usage + # System tests might still be a bit unstable, so for now, even if a system test fails, + # output the results and consider the overall test as successful. + continue-on-error: true + + - name: Upload system test screenshots + if: always() + uses: actions/upload-artifact@v4 + with: + name: system-test-screenshots-ruby${{ matrix.ruby }}-${{ matrix.db }} + path: tmp/screenshots + if-no-files-found: ignore