@@ -496,35 +496,40 @@ BUILD_VARIANTS.push({
496
496
tasks : [ 'test-rapid-server' ]
497
497
} ) ;
498
498
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
+
499
517
// singleton build variant for linting
500
518
SINGLETON_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 ( ) )
528
533
) ;
529
534
530
535
function * makeTypescriptTasks ( ) {
@@ -533,7 +538,7 @@ function* makeTypescriptTasks() {
533
538
if ( TS_VERSION !== '4.1.6' && TS_VERSION !== 'next' ) {
534
539
yield {
535
540
name : `compile-driver-typescript-${ TS_VERSION } ` ,
536
- tags : [ `compile-driver-typescript-${ TS_VERSION } ` ] ,
541
+ tags : [ `compile-driver-typescript-${ TS_VERSION } ` , 'typescript-compilation' ] ,
537
542
commands : [
538
543
updateExpansions ( {
539
544
NODE_LTS_VERSION : LOWEST_LTS ,
@@ -548,7 +553,7 @@ function* makeTypescriptTasks() {
548
553
549
554
yield {
550
555
name : `check-types-typescript-${ TS_VERSION } ` ,
551
- tags : [ `check-types-typescript-${ TS_VERSION } ` ] ,
556
+ tags : [ `check-types-typescript-${ TS_VERSION } ` , 'typescript-compilation' ] ,
552
557
commands : [
553
558
updateExpansions ( {
554
559
NODE_LTS_VERSION : LOWEST_LTS ,
@@ -562,7 +567,7 @@ function* makeTypescriptTasks() {
562
567
}
563
568
return {
564
569
name : 'run-typescript-next' ,
565
- tags : [ 'run-typescript-next' ] ,
570
+ tags : [ 'run-typescript-next' , 'typescript-compilation' ] ,
566
571
commands : [
567
572
updateExpansions ( {
568
573
NODE_LTS_VERSION : LOWEST_LTS ,
@@ -579,9 +584,9 @@ BUILD_VARIANTS.push({
579
584
display_name : 'lint' ,
580
585
run_on : DEFAULT_OS ,
581
586
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'
585
590
]
586
591
} ) ;
587
592
0 commit comments