mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-10 14:06:30 +00:00
Merge c3daf3bb8e
into 1d2c1a35e3
This commit is contained in:
commit
a70e7bdfbb
1 changed files with 7 additions and 2 deletions
|
@ -247,7 +247,11 @@ const config: JestConfig = {
|
|||
|
||||
export default config;
|
||||
|
||||
type RunsOn = 'ubuntu-latest' | 'windows-latest' | 'macos-latest';
|
||||
type RunsOn =
|
||||
| 'ubuntu-latest'
|
||||
| 'windows-latest'
|
||||
| 'macos-latest'
|
||||
| `windows-2025`;
|
||||
|
||||
interface ShardGroup {
|
||||
/**
|
||||
|
@ -386,6 +390,7 @@ if (process.env.SCHEDULE_TEST_SHARDS) {
|
|||
|
||||
if (process.env.ALL_PLATFORMS === 'true') {
|
||||
// shardGrouping['windows-latest'] = scheduleItems(shardKeys, 8);
|
||||
shardGrouping['windows-2025'] = scheduleItems(shardKeys, 8);
|
||||
shardGrouping['macos-latest'] = scheduleItems(shardKeys, 4);
|
||||
}
|
||||
|
||||
|
@ -396,7 +401,7 @@ if (process.env.SCHEDULE_TEST_SHARDS) {
|
|||
const total = groups.length;
|
||||
for (let idx = 0; idx < groups.length; idx += 1) {
|
||||
const number = idx + 1;
|
||||
const platform = os.replace(/-latest$/, '');
|
||||
const platform = os.replace(/-[a-z0-9]+$/, '');
|
||||
const name =
|
||||
platform === 'ubuntu'
|
||||
? `test (${number}/${total})`
|
||||
|
|
Loading…
Reference in a new issue