aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMichael Kriese <[email protected]>2024-12-22 13:51:05 +0100
committerMichael Kriese <[email protected]>2024-12-22 13:57:09 +0100
commitc3daf3bb8e88b3ef3643b660afacb6092fbd9d59 (patch)
tree930a5765da0c54b8b79d83deb6332c93c1d23abf
parent54e718e671e4e6e358ac982710716b89ad345759 (diff)
downloadrenovate-ci/test-windows-2025.tar.gz
renovate-ci/test-windows-2025.zip
ci: test on windows 2025ci/test-windows-2025
-rw-r--r--jest.config.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/jest.config.ts b/jest.config.ts
index b709c35129c..3440aecc9c5 100644
--- a/jest.config.ts
+++ b/jest.config.ts
@@ -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})`