File tree 13 files changed +60
-44
lines changed
SignalR/clients/ts/FunctionalTests/scripts
13 files changed +60
-44
lines changed Original file line number Diff line number Diff line change @@ -562,7 +562,7 @@ stages:
562
562
jobDisplayName : " Build: Linux Musl ARM"
563
563
agentOs : Linux
564
564
useHostedUbuntu : false
565
- container : mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18 .04-cross-arm-alpine
565
+ container : mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22 .04-cross-arm-alpine
566
566
buildArgs :
567
567
--arch arm
568
568
--os-name linux-musl
@@ -594,7 +594,7 @@ stages:
594
594
jobDisplayName : " Build: Linux Musl ARM64"
595
595
agentOs : Linux
596
596
useHostedUbuntu : false
597
- container : mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18 .04-cross-arm64-alpine
597
+ container : mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22 .04-cross-arm64-alpine
598
598
buildArgs :
599
599
--arch arm64
600
600
--os-name linux-musl
@@ -721,7 +721,7 @@ stages:
721
721
parameters :
722
722
platform :
723
723
name : ' Managed'
724
- container : ' mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8'
724
+ container : ' mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8-20240104210103-4893224 '
725
725
buildScript : ' ./eng/build.sh $(_PublishArgs) --no-build-repo-tasks $(_InternalRuntimeDownloadArgs)'
726
726
skipPublishValidation : true
727
727
jobProperties :
Original file line number Diff line number Diff line change 124
124
<ProjectToBuild Condition =" $(BuildNative) " Include =" @(NativeProjects)" Exclude =" @(ProjectToExclude)" />
125
125
<ProjectToExclude Condition =" !$(BuildNative) " Include =" @(NativeProjects)" />
126
126
127
- <NodeJsProjects Condition = " '$(TargetArchitecture)' == 'x64' "
127
+ <NodeJsProjects
128
128
Include =" $(RepoRoot)eng\Npm.Workspace.nodeproj;
129
129
$(RepoRoot)eng\Npm.Workspace.FunctionalTests.nodeproj;"
130
130
AdditionalProperties =" BuildInParallel=false"
Original file line number Diff line number Diff line change 4
4
<Import Project="$(MSBuildThisFileDirectory)..\Directory.Build.props" />
5
5
6
6
<PropertyGroup>
7
+ <ExcludeFromSourceBuild>false</ExcludeFromSourceBuild>
7
8
<IsTestProject>true</IsTestProject>
8
9
<IsUnitTestProject>true</IsUnitTestProject>
9
10
<TestDependsOnAspNetPackages>false</TestDependsOnAspNetPackages>
Original file line number Diff line number Diff line change 83
83
</ItemGroup >
84
84
</Target >
85
85
86
+ <Target Name =" RestoreNpmPackages"
87
+ BeforeTargets =" RunInnerSourceBuildCommand" >
88
+
89
+ <Message Text =" Checking node version..." Importance =" high" />
90
+ <Exec
91
+ Command =" node --version"
92
+ WorkingDirectory =" $(InnerSourceBuildRepoRoot)" />
93
+
94
+ <Message Text =" Checking npm version..." Importance =" high" />
95
+ <Exec
96
+ Command =" npm --version"
97
+ WorkingDirectory =" $(InnerSourceBuildRepoRoot)" />
98
+
99
+ <Exec
100
+ Command =" npm ci"
101
+ WorkingDirectory =" $(InnerSourceBuildRepoRoot)" />
102
+
103
+ </Target >
104
+
105
+ <Target Name =" BuildNpmFiles"
106
+ DependsOnTargets =" RestoreNpmPackages"
107
+ BeforeTargets =" RunInnerSourceBuildCommand" >
108
+
109
+ <Message Text =" Building Node JS files..." Importance =" high" />
110
+
111
+ <Exec
112
+ Command =" npm run build"
113
+ WorkingDirectory =" $(InnerSourceBuildRepoRoot)" />
114
+
115
+ </Target >
116
+
86
117
</Project >
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ parameters:
14
14
# This is the default platform provided by Arcade, intended for use by a managed-only repo.
15
15
defaultManagedPlatform :
16
16
name : ' Managed'
17
- container : ' mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8'
17
+ container : ' mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8-20240104210103-4893224 '
18
18
19
19
# Defines the platforms on which to run build jobs. One job is created for each platform, and the
20
20
# object in this array is sent to the job template as 'platform'. If no platforms are specified,
Original file line number Diff line number Diff line change 57
57
<Reference Include =" Microsoft.Extensions.FileProviders.Embedded" />
58
58
</ItemGroup >
59
59
60
- <PropertyGroup >
61
- <BlazorWebJSFilename >blazor.web.js</BlazorWebJSFilename >
62
- <BlazorWebJSFile Condition =" '$(Configuration)' == 'Debug' " >..\..\Web.JS\dist\Debug\$(BlazorWebJSFilename)</BlazorWebJSFile >
63
- <BlazorWebJSFile Condition =" '$(Configuration)' != 'Debug' " >..\..\Web.JS\dist\Release\$(BlazorWebJSFilename)</BlazorWebJSFile >
64
- </PropertyGroup >
65
-
66
- <Target Name =" _CheckBlazorWebJSPath" AfterTargets =" ResolveProjectReferences" Condition =" !EXISTS('$(BlazorWebJSFile)') " >
67
- <Warning Text =" '$(BlazorWebJSFile)' does not exist. Falling back to checked-in copy." />
60
+ <Target Name =" _AddEmbeddedBlazorWebJS" BeforeTargets =" _CalculateEmbeddedFilesManifestInputs" >
68
61
<PropertyGroup >
69
- <BlazorWebJSFile >..\..\Web.JS\dist\Release\$(BlazorWebJSFilename)</BlazorWebJSFile >
62
+ <BlazorWebJSFilename >blazor.web.js</BlazorWebJSFilename >
63
+ <BlazorWebJSFile Condition =" '$(Configuration)' == 'Debug' " >$(MSBuildThisFileDirectory)..\..\Web.JS\dist\Debug\$(BlazorWebJSFilename)</BlazorWebJSFile >
64
+ <BlazorWebJSFile Condition =" '$(Configuration)' != 'Debug' " >$(MSBuildThisFileDirectory)..\..\Web.JS\dist\Release\$(BlazorWebJSFilename)</BlazorWebJSFile >
70
65
</PropertyGroup >
71
- </Target >
72
66
73
- <Target Name =" _AddEmbeddedBlazorWebJS" AfterTargets =" _CheckBlazorWebJSPath" >
67
+ <Warning Condition =" !Exists('$(BlazorWebJSFile)')" Text =" '$(BlazorWebJSFile)' does not exist. Ensure the JS assets have been build by running 'npm run build' from the repository root." />
68
+
74
69
<ItemGroup >
75
70
<EmbeddedResource Include =" $(BlazorWebJSFile)" LogicalName =" _framework/$(BlazorWebJSFilename)" />
76
71
<EmbeddedResource Include =" $(BlazorWebJSFile).map" LogicalName =" _framework/$(BlazorWebJSFilename).map" Condition =" Exists('$(BlazorWebJSFile).map')" />
Original file line number Diff line number Diff line change 98
98
<Compile Include =" $(RepoRoot)src\Shared\Components\ProtectedPrerenderComponentApplicationStore.cs" />
99
99
</ItemGroup >
100
100
101
- <PropertyGroup >
102
- <BlazorServerJSFilename >blazor.server.js</BlazorServerJSFilename >
103
- <BlazorServerJSFile Condition =" '$(Configuration)' == 'Debug' " >..\..\Web.JS\dist\Debug\$(BlazorServerJSFilename)</BlazorServerJSFile >
104
- <BlazorServerJSFile Condition =" '$(Configuration)' != 'Debug' " >..\..\Web.JS\dist\Release\$(BlazorServerJSFilename)</BlazorServerJSFile >
105
- </PropertyGroup >
106
-
107
- <Target Name =" _CheckBlazorServerJSPath" AfterTargets =" ResolveProjectReferences" Condition =" !EXISTS('$(BlazorServerJSFile)') " >
108
- <Warning Text =" '$(BlazorServerJSFile)' does not exist. Falling back to checked-in copy." />
101
+ <Target Name =" _AddEmbeddedBlazor" BeforeTargets =" _CalculateEmbeddedFilesManifestInputs" >
109
102
<PropertyGroup >
110
- <BlazorServerJSFile >..\..\Web.JS\dist\Release\$(BlazorServerJSFilename)</BlazorServerJSFile >
103
+ <BlazorServerJSFilename >blazor.server.js</BlazorServerJSFilename >
104
+ <BlazorServerJSFile Condition =" '$(Configuration)' == 'Debug' " >$(MSBuildThisFileDirectory)..\..\Web.JS\dist\Debug\$(BlazorServerJSFilename)</BlazorServerJSFile >
105
+ <BlazorServerJSFile Condition =" '$(Configuration)' != 'Debug' " >$(MSBuildThisFileDirectory)..\..\Web.JS\dist\Release\$(BlazorServerJSFilename)</BlazorServerJSFile >
111
106
</PropertyGroup >
112
- </Target >
113
107
114
- <Target Name =" _AddEmbeddedBlazor" AfterTargets =" _CheckBlazorServerJSPath" >
108
+ <Warning Condition =" !Exists('$(BlazorServerJSFile)')" Text =" '$(BlazorServerJSFile)' does not exist. Ensure the JS assets have been build by running 'npm run build' from the repository root." />
109
+
115
110
<ItemGroup >
116
111
<EmbeddedResource Include =" $(BlazorServerJSFile)" LogicalName =" _framework/$(BlazorServerJSFilename)" />
117
112
<EmbeddedResource Include =" $(BlazorServerJSFile).map" LogicalName =" _framework/$(BlazorServerJSFilename).map" Condition =" Exists('$(BlazorServerJSFile).map')" />
Original file line number Diff line number Diff line change 1
1
node_modules /
2
- dist /Debug /
3
- dist /Release /blazor.webassembly.js
4
- dist /Release /blazor.webview.js
2
+ dist /
3
+ dist /
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 56
56
57
57
<UsingTask AssemblyFile =" $(_FileProviderTaskAssembly)" TaskName =" Microsoft.Extensions.FileProviders.Embedded.Manifest.Task.GenerateEmbeddedResourcesManifest" />
58
58
59
- <PropertyGroup >
60
- <BlazorWebViewJSFilename >blazor.webview.js</BlazorWebViewJSFilename >
61
- <BlazorWebViewJSFile Condition =" '$(Configuration)' == 'Debug' " >..\..\..\Web.JS\dist\Debug\$(BlazorWebViewJSFilename)</BlazorWebViewJSFile >
62
- <BlazorWebViewJSFile Condition =" '$(Configuration)' != 'Debug' " >..\..\..\Web.JS\dist\Release\$(BlazorWebViewJSFilename)</BlazorWebViewJSFile >
63
- </PropertyGroup >
59
+ <Target Name =" _AddEmbeddedBlazorWebView" BeforeTargets =" _CalculateEmbeddedFilesManifestInputs" >
64
60
65
- <Target Name =" _CheckBlazorWebViewJSPath" AfterTargets =" ResolveProjectReferences" Condition =" !EXISTS('$(BlazorWebViewJSFile)') " >
66
- <Warning Text =" '$(BlazorWebViewJSFile)' does not exist. Falling back to checked-in copy." />
67
61
<PropertyGroup >
68
- <BlazorWebViewJSFile >..\..\..\Web.JS\dist\Release\$(BlazorWebViewJSFilename)</BlazorWebViewJSFile >
62
+ <BlazorWebViewJSFilename >blazor.webview.js</BlazorWebViewJSFilename >
63
+ <BlazorWebViewJSFile Condition =" '$(Configuration)' == 'Debug' " >$(MSBuildThisFileDirectory)..\..\..\Web.JS\dist\Debug\$(BlazorWebViewJSFilename)</BlazorWebViewJSFile >
64
+ <BlazorWebViewJSFile Condition =" '$(Configuration)' != 'Debug' " >$(MSBuildThisFileDirectory)..\..\..\Web.JS\dist\Release\$(BlazorWebViewJSFilename)</BlazorWebViewJSFile >
69
65
</PropertyGroup >
70
- </Target >
71
66
72
- <Target Name =" _AddEmbeddedBlazorWebView" BeforeTargets =" _CalculateEmbeddedFilesManifestInputs" DependsOnTargets =" _CheckBlazorWebViewJSPath" >
67
+ <Warning Condition =" !Exists('$(BlazorWebViewJSFile)')" Text =" '$(BlazorWebViewJSFile)' does not exist. Ensure the JS assets have been build by running 'npm run build' from the repository root." />
68
+
73
69
<ItemGroup >
74
70
<EmbeddedResource Include =" blazor.modules.json" LogicalName =" _framework/blazor.modules.json" />
75
71
<EmbeddedResource Include =" $(BlazorWebViewJSFile)" LogicalName =" _framework/$(BlazorWebViewJSFilename)" />
Original file line number Diff line number Diff line change
1
+ const os = require ( 'os' ) ;
2
+
1
3
try {
2
4
// Karma configuration for a local run (the default)
3
5
const createKarmaConfig = require ( "./karma.base.conf" ) ;
45
47
// We use the launchers themselves to figure out if the browser exists. It's a bit sneaky, but it works.
46
48
tryAddBrowser ( "ChromeHeadlessNoSandbox" , ChromeHeadlessBrowser . prototype ) ;
47
49
tryAddBrowser ( "ChromiumHeadlessIgnoreCert" , ChromiumHeadlessBrowser . prototype ) ;
48
- if ( ! tryAddBrowser ( "FirefoxHeadless" , FirefoxHeadlessBrowser . prototype ) ) {
50
+ if ( os . platform ( ) !== 'darwin' && ! tryAddBrowser ( "FirefoxHeadless" , FirefoxHeadlessBrowser . prototype ) ) {
49
51
tryAddBrowser ( "FirefoxDeveloperHeadless" , FirefoxDeveloperHeadlessBrowser . prototype ) ;
50
52
}
51
53
You can’t perform that action at this time.
0 commit comments