@@ -415,10 +415,24 @@ stages:
415
415
CONNECTIONSTRINGS__UMBRACODBDSN_PROVIDERNAME : Microsoft.Data.Sqlite
416
416
strategy :
417
417
matrix :
418
- Linux :
419
- vmImage : ' ubuntu-latest'
420
- Windows :
421
- vmImage : ' windows-latest'
418
+ LinuxPart1Of3 :
419
+ vmImage : " ubuntu-latest"
420
+ testCommand : " npm run test -- --shard=1/3"
421
+ LinuxPart2Of3 :
422
+ vmImage : " ubuntu-latest"
423
+ testCommand : " npm run test -- --shard=2/3"
424
+ LinuxPart3Of3 :
425
+ vmImage : " ubuntu-latest"
426
+ testCommand : " npm run test -- --shard=3/3"
427
+ WindowsPart1Of3 :
428
+ vmImage : " windows-latest"
429
+ testCommand : " npm run test -- --shard=1/3"
430
+ WindowsPart2Of3 :
431
+ vmImage : " windows-latest"
432
+ testCommand : " npm run test -- --shard=2/3"
433
+ WindowsPart3Of3 :
434
+ vmImage : " windows-latest"
435
+ testCommand : " npm run test -- --shard=3/3"
422
436
pool :
423
437
vmImage : $(vmImage)
424
438
steps :
@@ -501,7 +515,7 @@ stages:
501
515
workingDirectory : tests/Umbraco.Tests.AcceptanceTest
502
516
503
517
# Test
504
- - pwsh : npm run test --ignore-certificate-errors
518
+ - pwsh : $(testCommand)
505
519
displayName : Run Playwright tests
506
520
continueOnError : true
507
521
workingDirectory : tests/Umbraco.Tests.AcceptanceTest
@@ -522,7 +536,7 @@ stages:
522
536
# Copy artifacts
523
537
- pwsh : |
524
538
if (Test-Path tests/Umbraco.Tests.AcceptanceTest/results/*) {
525
- Copy-Item tests/Umbraco.Tests.AcceptanceTest/results $(Build.ArtifactStagingDirectory) -Recurse
539
+ Copy-Item tests/Umbraco.Tests.AcceptanceTest/results/* $(Build.ArtifactStagingDirectory) -Recurse
526
540
}
527
541
displayName: Copy Playwright results
528
542
condition: succeededOrFailed()
@@ -533,8 +547,7 @@ stages:
533
547
condition : succeededOrFailed()
534
548
inputs :
535
549
targetPath : $(Build.ArtifactStagingDirectory)
536
- artifact : ' Acceptance Tests - $(Agent.JobName) - Attempt #$(System.JobAttempt)'
537
-
550
+ artifact : " Acceptance Test Results - $(Agent.JobName) - Attempt #$(System.JobAttempt)"
538
551
- job :
539
552
displayName : E2E Tests (SQL Server)
540
553
condition : or(eq(stageDependencies.Build.A.outputs['build.NBGV_PublicRelease'], 'True'), ${{parameters.sqlServerAcceptanceTests}})
@@ -544,12 +557,30 @@ stages:
544
557
CONNECTIONSTRINGS__UMBRACODBDSN_PROVIDERNAME : Microsoft.Data.SqlClient
545
558
strategy :
546
559
matrix :
547
- Linux :
548
- vmImage : ' ubuntu-latest'
560
+ LinuxPart1Of3 :
561
+ testCommand : " npm run testSqlite -- --shard=1/3"
562
+ vmImage : " ubuntu-latest"
549
563
SA_PASSWORD : $(UMBRACO__CMS__UNATTENDED__UNATTENDEDUSERPASSWORD)
550
- CONNECTIONSTRINGS__UMBRACODBDSN : ' Server=(local);Database=Umbraco;User Id=sa;Password=$(SA_PASSWORD);TrustServerCertificate=True'
551
- Windows :
552
- vmImage : ' windows-latest'
564
+ CONNECTIONSTRINGS__UMBRACODBDSN : " Server=(local);Database=Umbraco;User Id=sa;Password=$(SA_PASSWORD);TrustServerCertificate=True"
565
+ LinuxPart2Of3 :
566
+ testCommand : " npm run testSqlite -- --shard=2/3"
567
+ vmImage : " ubuntu-latest"
568
+ SA_PASSWORD : $(UMBRACO__CMS__UNATTENDED__UNATTENDEDUSERPASSWORD)
569
+ CONNECTIONSTRINGS__UMBRACODBDSN : " Server=(local);Database=Umbraco;User Id=sa;Password=$(SA_PASSWORD);TrustServerCertificate=True"
570
+ LinuxPart3Of3 :
571
+ testCommand : " npm run testSqlite -- --shard=3/3"
572
+ vmImage : " ubuntu-latest"
573
+ SA_PASSWORD : $(UMBRACO__CMS__UNATTENDED__UNATTENDEDUSERPASSWORD)
574
+ CONNECTIONSTRINGS__UMBRACODBDSN : " Server=(local);Database=Umbraco;User Id=sa;Password=$(SA_PASSWORD);TrustServerCertificate=True"
575
+ WindowsPart1Of3 :
576
+ vmImage : " windows-latest"
577
+ testCommand : " npm run testSqlite -- --shard=1/3"
578
+ WindowsPart2Of3 :
579
+ vmImage : " windows-latest"
580
+ testCommand : " npm run testSqlite -- --shard=2/3"
581
+ WindowsPart3Of3 :
582
+ vmImage : " windows-latest"
583
+ testCommand : " npm run testSqlite -- --shard=3/3"
553
584
pool :
554
585
vmImage : $(vmImage)
555
586
steps :
@@ -640,7 +671,7 @@ stages:
640
671
workingDirectory : tests/Umbraco.Tests.AcceptanceTest
641
672
642
673
# Test
643
- - pwsh : npm run test --ignore-certificate-errors
674
+ - pwsh : $(testCommand)
644
675
displayName : Run Playwright tests
645
676
continueOnError : true
646
677
workingDirectory : tests/Umbraco.Tests.AcceptanceTest
@@ -670,7 +701,7 @@ stages:
670
701
# Copy artifacts
671
702
- pwsh : |
672
703
if (Test-Path tests/Umbraco.Tests.AcceptanceTest/results/*) {
673
- Copy-Item tests/Umbraco.Tests.AcceptanceTest/results $(Build.ArtifactStagingDirectory) -Recurse
704
+ Copy-Item tests/Umbraco.Tests.AcceptanceTest/results/* $(Build.ArtifactStagingDirectory) -Recurse
674
705
}
675
706
displayName: Copy Playwright results
676
707
condition: succeededOrFailed()
@@ -681,7 +712,7 @@ stages:
681
712
condition : succeededOrFailed()
682
713
inputs :
683
714
targetPath : $(Build.ArtifactStagingDirectory)
684
- artifact : ' Acceptance Tests - $(Agent.JobName) - Attempt #$(System.JobAttempt)'
715
+ artifact : " Acceptance Test Results - $(Agent.JobName) - Attempt #$(System.JobAttempt)"
685
716
686
717
# ##############################################
687
718
# # Release
0 commit comments