Skip to content

Commit

Permalink
ci: test on windows 2025
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Dec 22, 2024
1 parent 54e718e commit c3daf3b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down Expand Up @@ -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);
}

Expand All @@ -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})`
Expand Down

0 comments on commit c3daf3b

Please sign in to comment.