@@ -496,35 +496,40 @@ BUILD_VARIANTS.push({
496496 tasks : [ 'test-rapid-server' ]
497497} ) ;
498498
499+ const unitTestTasks = Array . from ( (
500+ function * ( ) {
501+ for ( const { versionNumber : NODE_LTS_VERSION , npmVersion : NPM_VERSION } of versions ) {
502+ yield {
503+ name : `run-unit-tests-node-${ NODE_LTS_VERSION } ` ,
504+ tags : [ 'unit-tests' ] ,
505+ commands : [
506+ updateExpansions ( {
507+ NODE_LTS_VERSION ,
508+ NPM_VERSION
509+ } ) ,
510+ { func : 'install dependencies' } ,
511+ { func : 'run unit tests' }
512+ ]
513+ }
514+ }
515+ } ) ( ) )
516+
499517// singleton build variant for linting
500518SINGLETON_TASKS . push (
501- ...[
502- {
503- name : 'run-unit-tests' ,
504- tags : [ 'run-unit-tests' ] ,
505- commands : [
506- updateExpansions ( {
507- NODE_LTS_VERSION : LOWEST_LTS ,
508- NPM_VERSION : 9
509- } ) ,
510- { func : 'install dependencies' } ,
511- { func : 'run unit tests' }
512- ]
513- } ,
514- {
515- name : 'run-lint-checks' ,
516- tags : [ 'run-lint-checks' ] ,
517- commands : [
518- updateExpansions ( {
519- NODE_LTS_VERSION : LOWEST_LTS ,
520- NPM_VERSION : 9
521- } ) ,
522- { func : 'install dependencies' } ,
523- { func : 'run lint checks' }
524- ]
525- } ,
526- ...Array . from ( makeTypescriptTasks ( ) )
527- ]
519+ ...unitTestTasks ,
520+ {
521+ name : 'run-lint-checks' ,
522+ tags : [ 'lint-checks' ] ,
523+ commands : [
524+ updateExpansions ( {
525+ NODE_LTS_VERSION : LOWEST_LTS ,
526+ NPM_VERSION : 9
527+ } ) ,
528+ { func : 'install dependencies' } ,
529+ { func : 'run lint checks' }
530+ ]
531+ } ,
532+ ...Array . from ( makeTypescriptTasks ( ) )
528533) ;
529534
530535function * makeTypescriptTasks ( ) {
@@ -533,7 +538,7 @@ function* makeTypescriptTasks() {
533538 if ( TS_VERSION !== '4.1.6' && TS_VERSION !== 'next' ) {
534539 yield {
535540 name : `compile-driver-typescript-${ TS_VERSION } ` ,
536- tags : [ `compile-driver-typescript-${ TS_VERSION } ` ] ,
541+ tags : [ `compile-driver-typescript-${ TS_VERSION } ` , 'typescript-compilation' ] ,
537542 commands : [
538543 updateExpansions ( {
539544 NODE_LTS_VERSION : LOWEST_LTS ,
@@ -548,7 +553,7 @@ function* makeTypescriptTasks() {
548553
549554 yield {
550555 name : `check-types-typescript-${ TS_VERSION } ` ,
551- tags : [ `check-types-typescript-${ TS_VERSION } ` ] ,
556+ tags : [ `check-types-typescript-${ TS_VERSION } ` , 'typescript-compilation' ] ,
552557 commands : [
553558 updateExpansions ( {
554559 NODE_LTS_VERSION : LOWEST_LTS ,
@@ -562,7 +567,7 @@ function* makeTypescriptTasks() {
562567 }
563568 return {
564569 name : 'run-typescript-next' ,
565- tags : [ 'run-typescript-next' ] ,
570+ tags : [ 'run-typescript-next' , 'typescript-compilation' ] ,
566571 commands : [
567572 updateExpansions ( {
568573 NODE_LTS_VERSION : LOWEST_LTS ,
@@ -579,9 +584,9 @@ BUILD_VARIANTS.push({
579584 display_name : 'lint' ,
580585 run_on : DEFAULT_OS ,
581586 tasks : [
582- 'run- unit-tests' ,
583- 'run- lint-checks' ,
584- ... Array . from ( makeTypescriptTasks ( ) ) . map ( ( { name } ) => name )
587+ '. unit-tests' ,
588+ '. lint-checks' ,
589+ '.typescript-compilation'
585590 ]
586591} ) ;
587592
0 commit comments