@@ -2,7 +2,12 @@ import { createHash } from 'node:crypto';
22import { readFileSync } from 'node:fs' ;
33import { join } from 'node:path' ;
44
5- import { JAVA_COMPATIBLE_VERSIONS , RECOMMENDED_JAVA_VERSION , RECOMMENDED_NODE_VERSION } from '../../generators/generator-constants.js' ;
5+ import {
6+ JAVA_COMPATIBLE_VERSIONS ,
7+ RECOMMENDED_JAVA_VERSION ,
8+ RECOMMENDED_NODE_VERSION ,
9+ SUPPORTED_NODE_VERSIONS ,
10+ } from '../../generators/generator-constants.js' ;
611import { getSourceRoot } from '../index.ts' ;
712
813const knwonGitHubMatrixProperties = [
@@ -78,7 +83,7 @@ const randomEnvironmentMatrix = (key: string, options: RandomEnvironmentOptions)
7883 const {
7984 useVersionPlaceholders,
8085 javaVersions = [ RECOMMENDED_JAVA_VERSION , ...JAVA_COMPATIBLE_VERSIONS ] ,
81- nodeVersions = [ RECOMMENDED_NODE_VERSION , '20' , '22' ] ,
86+ nodeVersions = [ RECOMMENDED_NODE_VERSION , ... SUPPORTED_NODE_VERSIONS ] ,
8287 } = options ;
8388 const javaVersion = randomReproducibleValue ( `java-${ key } ` , javaVersions , { useVersionPlaceholders } ) ;
8489 const nodeVersion = randomReproducibleValue ( `node-${ key } ` , nodeVersions , { useVersionPlaceholders } ) ;
0 commit comments