11name : Tests
22on :
33 push :
4- branches : [main]
4+ branches : [main, perf/asymmetric-shards ]
55 pull_request :
66 branches : [main]
77
88jobs :
99 rspec :
10- name : rspec (${{ matrix.ruby-version }}, ${{ matrix.os }}, shard ${{ matrix.shard }})
11- timeout-minutes : ${{ matrix.os == 'windows' && 30 || 15 }}
12- runs-on : ${{ format('{0}-latest', matrix.os) }}
10+ name : rspec (${{ matrix.ruby-version }}, ${{ matrix.target. os }}, shard ${{ matrix.target .shard }})
11+ timeout-minutes : ${{ matrix.target. os == 'windows' && 30 || 15 }}
12+ runs-on : ${{ format('{0}-latest', matrix.target. os) }}
1313 env :
1414 BUNDLE_WITHOUT : lint
15- SPEC_WORKERS : ${{ matrix.os == 'windows' && 4 || 8 }}
16- SPEC_SHARD : ${{ matrix.shard }}
15+ SPEC_WORKERS : ${{ matrix.target. os == 'windows' && 4 || 8 }}
16+ SPEC_SHARD : ${{ matrix.target. shard }}
1717
1818 strategy :
1919 fail-fast : false
@@ -22,10 +22,13 @@ jobs:
2222 - " 3.3"
2323 - " 3.4"
2424 - " 4.0"
25- os :
26- - ubuntu
27- - windows
28- shard : ["1/3", "2/3", "3/3"]
25+ target :
26+ - { os: ubuntu, shard: "1/1" }
27+ - { os: windows, shard: "1/5" }
28+ - { os: windows, shard: "2/5" }
29+ - { os: windows, shard: "3/5" }
30+ - { os: windows, shard: "4/5" }
31+ - { os: windows, shard: "5/5" }
2932
3033 steps :
3134 - uses : actions/checkout@v4
5659 uses : coverallsapp/github-action@v2
5760 with :
5861 github-token : ${{ secrets.github_token }}
59- flag-name : ruby${{ matrix.ruby-version }}-${{ matrix.os }}-shard${{ strategy.job-index }}
62+ flag-name : ruby${{ matrix.ruby-version }}-${{ matrix.target. os }}-shard${{ strategy.job-index }}
6063 parallel : true
6164
6265 overcommit :
0 commit comments