|
97 | 97 | # RSpec integration tests with Node renderer |
98 | 98 | rspec-dummy-app-node-renderer: |
99 | 99 | needs: build-dummy-app-webpack-test-bundles |
100 | | - strategy: |
101 | | - fail-fast: false |
102 | | - matrix: |
103 | | - # Test parallelization - split tests across 3 shards |
104 | | - shard: [1, 2, 3] |
105 | 100 | runs-on: ubuntu-22.04 |
106 | 101 | env: |
107 | 102 | REACT_ON_RAILS_PRO_LICENSE: ${{ secrets.REACT_ON_RAILS_PRO_LICENSE }} |
@@ -213,51 +208,49 @@ jobs: |
213 | 208 | - name: Wait for Rails server to start |
214 | 209 | run: while ! curl -s http://localhost:3000 > /dev/null; do sleep 1; done |
215 | 210 |
|
216 | | - - name: Run RSpec tests for Pro dummy app (shard ${{ matrix.shard }}/3) |
| 211 | + - name: Run RSpec tests for Pro dummy app |
217 | 212 | run: | |
218 | 213 | cd spec/dummy |
219 | | - SPEC_FILES=$(find spec -name '*_spec.rb' | sort | awk "NR % 3 == ${{ matrix.shard }} - 1") |
220 | 214 | bundle exec rspec \ |
| 215 | + --profile 10 \ |
221 | 216 | --format progress \ |
222 | 217 | --format RspecJunitFormatter \ |
223 | 218 | --out ~/rspec/rspec.xml \ |
224 | | - --format documentation \ |
225 | | - --only-failures \ |
226 | | - $SPEC_FILES |
| 219 | + --format documentation |
227 | 220 |
|
228 | 221 | - name: Store test results |
229 | 222 | uses: actions/upload-artifact@v4 |
230 | 223 | if: always() |
231 | 224 | with: |
232 | | - name: pro-rspec-integration-results-shard${{ matrix.shard }} |
| 225 | + name: pro-rspec-integration-results |
233 | 226 | path: ~/rspec |
234 | 227 |
|
235 | 228 | - name: Store screenshots |
236 | 229 | uses: actions/upload-artifact@v4 |
237 | 230 | if: always() |
238 | 231 | with: |
239 | | - name: pro-rspec-screenshots-shard${{ matrix.shard }} |
| 232 | + name: pro-rspec-screenshots |
240 | 233 | path: react_on_rails_pro/spec/dummy/tmp/screenshots |
241 | 234 |
|
242 | 235 | - name: Store Capybara artifacts |
243 | 236 | uses: actions/upload-artifact@v4 |
244 | 237 | if: always() |
245 | 238 | with: |
246 | | - name: pro-rspec-capybara-shard${{ matrix.shard }} |
| 239 | + name: pro-rspec-capybara |
247 | 240 | path: react_on_rails_pro/spec/dummy/tmp/capybara |
248 | 241 |
|
249 | 242 | - name: Store test log |
250 | 243 | uses: actions/upload-artifact@v4 |
251 | 244 | if: always() |
252 | 245 | with: |
253 | | - name: pro-rspec-test-log-shard${{ matrix.shard }} |
| 246 | + name: pro-rspec-test-log |
254 | 247 | path: react_on_rails_pro/spec/dummy/log/test.log |
255 | 248 |
|
256 | 249 | - name: Store yarn error log |
257 | 250 | uses: actions/upload-artifact@v4 |
258 | 251 | if: failure() |
259 | 252 | with: |
260 | | - name: pro-rspec-yarn-error-log-shard${{ matrix.shard }} |
| 253 | + name: pro-rspec-yarn-error-log |
261 | 254 | path: react_on_rails_pro/spec/dummy/yarn-error.log |
262 | 255 |
|
263 | 256 | # Playwright E2E tests with Redis service |
|
0 commit comments