Project

General

Profile

Feature #42688 » 0001-Run-system-tests-on-GitHub-CI.patch

Katsuya HIDAKA, 2025-05-10 16:18

View differences:

.github/workflows/tests.yml
110 110
      - name: Run autoload test
111 111
        run: |
112 112
          bin/rails test:autoload
113

  
114
      # System tests use Chrome and ChromeDriver installed on the GitHub Actions Ubuntu image.
115
      # They are generally updated to the latest stable versions.
116
      - name: Run system tests
117
        run: |
118
          google-chrome --version
119
          bin/rails test:system
120
        env:
121
          GOOGLE_CHROME_OPTS_ARGS: headless,disable-gpu,no-sandbox,disable-dev-shm-usage
122
        # System tests might still be a bit unstable, so for now, even if a system test fails,
123
        # output the results and consider the overall test as successful.
124
        continue-on-error: true
125

  
126
      - name: Upload system test screenshots
127
        if: always()
128
        uses: actions/upload-artifact@v4
129
        with:
130
          name: system-test-screenshots-ruby${{ matrix.ruby }}-${{ matrix.db }}
131
          path: tmp/screenshots
132
          if-no-files-found: ignore
(2-2/2)