diff --git a/build/azure-pipelines.yml b/build/azure-pipelines.yml index 1a60bb492a..810027c643 100644 --- a/build/azure-pipelines.yml +++ b/build/azure-pipelines.yml @@ -117,8 +117,7 @@ stages: - checkout: self submodules: false lfs: false, - fetchDepth: 1 - fetchFilter: tree:0 + fetchDepth: 500 - template: templates/backoffice-install.yml - script: npm run build:for:npm displayName: Run build:for:npm @@ -302,27 +301,27 @@ stages: LinuxPart1Of3: vmImage: "ubuntu-latest" # Filter tests that are part of the Umbraco.Infrastructure namespace but not part of the Umbraco.Infrastructure.Service namespace - testFilter: '(FullyQualifiedName~Umbraco.Infrastructure) & (FullyQualifiedName!~Umbraco.Infrastructure.Service)' + testFilter: "(FullyQualifiedName~Umbraco.Infrastructure) & (FullyQualifiedName!~Umbraco.Infrastructure.Service)" LinuxPart2Of3: vmImage: "ubuntu-latest" # Filter tests that are part of the Umbraco.Infrastructure.Service namespace - testFilter: '(FullyQualifiedName~Umbraco.Infrastructure.Service)' + testFilter: "(FullyQualifiedName~Umbraco.Infrastructure.Service)" LinuxPart3Of3: vmImage: "ubuntu-latest" # Filter tests that are not part of the Umbraco.Infrastructure namespace. So this will run all tests that are not part of the Umbraco.Infrastructure namespace - testFilter: '(FullyQualifiedName!~Umbraco.Infrastructure)' + testFilter: "(FullyQualifiedName!~Umbraco.Infrastructure)" macOSPart1Of3: vmImage: "macOS-latest" # Filter tests that are part of the Umbraco.Infrastructure namespace but not part of the Umbraco.Infrastructure.Service namespace - testFilter: '(FullyQualifiedName~Umbraco.Infrastructure) & (FullyQualifiedName!~Umbraco.Infrastructure.Service)' + testFilter: "(FullyQualifiedName~Umbraco.Infrastructure) & (FullyQualifiedName!~Umbraco.Infrastructure.Service)" macOSPart2Of3: vmImage: "macOS-latest" # Filter tests that are part of the Umbraco.Infrastructure.Service namespace - testFilter: '(FullyQualifiedName~Umbraco.Infrastructure.Service)' + testFilter: "(FullyQualifiedName~Umbraco.Infrastructure.Service)" macOSPart3Of3: vmImage: "macOS-latest" # Filter tests that are not part of the Umbraco.Infrastructure namespace. - testFilter: '(FullyQualifiedName!~Umbraco.Infrastructure)' + testFilter: "(FullyQualifiedName!~Umbraco.Infrastructure)" pool: vmImage: $(vmImage) variables: @@ -374,40 +373,40 @@ stages: Tests__Database__DatabaseType: LocalDb Tests__Database__SQLServerMasterConnectionString: N/A # Filter tests that are part of the Umbraco.Infrastructure namespace but not part of the Umbraco.Infrastructure.Service namespace - testFilter: '(FullyQualifiedName~Umbraco.Infrastructure) & (FullyQualifiedName!~Umbraco.Infrastructure.Service)' + testFilter: "(FullyQualifiedName~Umbraco.Infrastructure) & (FullyQualifiedName!~Umbraco.Infrastructure.Service)" WindowsPart2Of3: vmImage: "windows-latest" Tests__Database__DatabaseType: LocalDb Tests__Database__SQLServerMasterConnectionString: N/A # Filter tests that are part of the Umbraco.Infrastructure.Service namespace - testFilter: '(FullyQualifiedName~Umbraco.Infrastructure.Service)' + testFilter: "(FullyQualifiedName~Umbraco.Infrastructure.Service)" WindowsPart3Of3: vmImage: "windows-latest" Tests__Database__DatabaseType: LocalDb Tests__Database__SQLServerMasterConnectionString: N/A # Filter tests that are not part of the Umbraco.Infrastructure namespace. So this will run all tests that are not part of the Umbraco.Infrastructure namespace - testFilter: '(FullyQualifiedName!~Umbraco.Infrastructure)' + testFilter: "(FullyQualifiedName!~Umbraco.Infrastructure)" LinuxPart1Of3: vmImage: "ubuntu-latest" SA_PASSWORD: UmbracoIntegration123! Tests__Database__DatabaseType: SqlServer Tests__Database__SQLServerMasterConnectionString: "Server=(local);User Id=sa;Password=$(SA_PASSWORD);TrustServerCertificate=True" # Filter tests that are part of the Umbraco.Infrastructure namespace but not part of the Umbraco.Infrastructure.Service namespace - testFilter: '(FullyQualifiedName~Umbraco.Infrastructure) & (FullyQualifiedName!~Umbraco.Infrastructure.Service)' + testFilter: "(FullyQualifiedName~Umbraco.Infrastructure) & (FullyQualifiedName!~Umbraco.Infrastructure.Service)" LinuxPart2Of3: vmImage: "ubuntu-latest" SA_PASSWORD: UmbracoIntegration123! Tests__Database__DatabaseType: SqlServer Tests__Database__SQLServerMasterConnectionString: "Server=(local);User Id=sa;Password=$(SA_PASSWORD);TrustServerCertificate=True" # Filter tests that are part of the Umbraco.Infrastructure.Service namespace - testFilter: '(FullyQualifiedName~Umbraco.Infrastructure.Service)' + testFilter: "(FullyQualifiedName~Umbraco.Infrastructure.Service)" LinuxPart3Of3: vmImage: "ubuntu-latest" SA_PASSWORD: UmbracoIntegration123! Tests__Database__DatabaseType: SqlServer Tests__Database__SQLServerMasterConnectionString: "Server=(local);User Id=sa;Password=$(SA_PASSWORD);TrustServerCertificate=True" # Filter tests that are not part of the Umbraco.Infrastructure namespace. So this will run all tests that are not part of the Umbraco.Infrastructure namespace - testFilter: '(FullyQualifiedName!~Umbraco.Infrastructure)' + testFilter: "(FullyQualifiedName!~Umbraco.Infrastructure)" pool: vmImage: $(vmImage) steps: @@ -493,22 +492,22 @@ stages: matrix: LinuxPart1Of3: vmImage: "ubuntu-latest" - testCommand: "npx playwright test DefaultConfig --grep \"@smoke\"--shard=1/3" + testCommand: 'npx playwright test DefaultConfig --grep "@smoke"--shard=1/3' LinuxPart2Of3: vmImage: "ubuntu-latest" - testCommand: "npx playwright test DefaultConfig --grep \"@smoke\" --shard=2/3" + testCommand: 'npx playwright test DefaultConfig --grep "@smoke" --shard=2/3' LinuxPart3Of3: vmImage: "ubuntu-latest" - testCommand: "npx playwright test DefaultConfig --grep \"@smoke\" --shard=3/3" + testCommand: 'npx playwright test DefaultConfig --grep "@smoke" --shard=3/3' WindowsPart1Of3: vmImage: "windows-latest" - testCommand: "npx playwright test DefaultConfig --grep \"@smoke\" --shard=1/3" + testCommand: 'npx playwright test DefaultConfig --grep "@smoke" --shard=1/3' WindowsPart2Of3: vmImage: "windows-latest" - testCommand: "npx playwright test DefaultConfig --grep \"@smoke\" --shard=2/3" + testCommand: 'npx playwright test DefaultConfig --grep "@smoke" --shard=2/3' WindowsPart3Of3: vmImage: "windows-latest" - testCommand: "npx playwright test DefaultConfig --grep \"@smoke\" --shard=3/3" + testCommand: 'npx playwright test DefaultConfig --grep "@smoke" --shard=3/3' pool: vmImage: $(vmImage) steps: @@ -636,29 +635,29 @@ stages: matrix: ${{ if eq(parameters.sqlServerLinuxAcceptanceTests, True) }}: LinuxPart1Of3: - testCommand: "npx playwright test DefaultConfig --grep \"@smoke\" --grep-invert \"Users\" --shard=1/3" + testCommand: 'npx playwright test DefaultConfig --grep "@smoke" --grep-invert "Users" --shard=1/3' vmImage: "ubuntu-latest" SA_PASSWORD: $(UMBRACO__CMS__UNATTENDED__UNATTENDEDUSERPASSWORD) CONNECTIONSTRINGS__UMBRACODBDSN: "Server=(local);Database=Umbraco;User Id=sa;Password=$(SA_PASSWORD);TrustServerCertificate=True" LinuxPart2Of3: - testCommand: "npx playwright test DefaultConfig --grep \"@smoke\" --grep-invert \"Users\" --shard=2/3" + testCommand: 'npx playwright test DefaultConfig --grep "@smoke" --grep-invert "Users" --shard=2/3' vmImage: "ubuntu-latest" SA_PASSWORD: $(UMBRACO__CMS__UNATTENDED__UNATTENDEDUSERPASSWORD) CONNECTIONSTRINGS__UMBRACODBDSN: "Server=(local);Database=Umbraco;User Id=sa;Password=$(SA_PASSWORD);TrustServerCertificate=True" LinuxPart3Of3: - testCommand: "npx playwright test DefaultConfig --grep \"@smoke\" --grep-invert \"Users\" --shard=3/3" + testCommand: 'npx playwright test DefaultConfig --grep "@smoke" --grep-invert "Users" --shard=3/3' vmImage: "ubuntu-latest" SA_PASSWORD: $(UMBRACO__CMS__UNATTENDED__UNATTENDEDUSERPASSWORD) CONNECTIONSTRINGS__UMBRACODBDSN: "Server=(local);Database=Umbraco;User Id=sa;Password=$(SA_PASSWORD);TrustServerCertificate=True" WindowsPart1Of3: vmImage: "windows-latest" - testCommand: "npx playwright test DefaultConfig --grep \"@smoke\" --grep-invert \"Users\" --shard=1/3" + testCommand: 'npx playwright test DefaultConfig --grep "@smoke" --grep-invert "Users" --shard=1/3' WindowsPart2Of3: vmImage: "windows-latest" - testCommand: "npx playwright test DefaultConfig --grep \"@smoke\" --grep-invert \"Users\" --shard=2/3" + testCommand: 'npx playwright test DefaultConfig --grep "@smoke" --grep-invert "Users" --shard=2/3' WindowsPart3Of3: vmImage: "windows-latest" - testCommand: "npx playwright test DefaultConfig --grep \"@smoke\" --grep-invert \"Users\" --shard=3/3" + testCommand: 'npx playwright test DefaultConfig --grep "@smoke" --grep-invert "Users" --shard=3/3' pool: vmImage: $(vmImage) steps: