File tree Expand file tree Collapse file tree 4 files changed +20
-19
lines changed Expand file tree Collapse file tree 4 files changed +20
-19
lines changed Original file line number Diff line number Diff line change @@ -10,20 +10,6 @@ concurrency:
10
10
cancel-in-progress : true
11
11
12
12
jobs :
13
- build :
14
- name : Building
15
- runs-on : ubuntu-latest
16
- steps :
17
- - uses : actions/checkout@v3
18
-
19
- - name : Setup .NET
20
- uses : actions/setup-dotnet@v3
21
- with :
22
- dotnet-version : 7.x
23
-
24
- - name : Execute Tests
25
- run : dotnet build --configuration Release
26
-
27
13
test :
28
14
name : Testing
29
15
runs-on : ubuntu-latest
39
25
40
26
41
27
- name : Execute Tests
42
- run : dotnet test
28
+ run : dotnet test --configuration Release
Original file line number Diff line number Diff line change @@ -21,10 +21,17 @@ static MlcProvider()
21
21
22
22
public async Task InitializeAsync ( )
23
23
{
24
+ var assemblyConfigurationAttribute =
25
+ typeof ( MlcProvider ) . Assembly . GetCustomAttribute < AssemblyConfigurationAttribute > ( ) ;
26
+ var buildConfigurationName = assemblyConfigurationAttribute ? . Configuration ?? "Debug" ;
27
+
24
28
try
25
29
{
26
30
await Semaphore . WaitAsync ( ) ;
27
- using var workspace = MSBuildWorkspace . Create ( ) ;
31
+ using var workspace = MSBuildWorkspace . Create ( new Dictionary < string , string >
32
+ {
33
+ { "Configuration" , buildConfigurationName } ,
34
+ } ) ;
28
35
workspace . SkipUnrecognizedProjects = true ;
29
36
workspace . LoadMetadataForReferencedProjects = true ;
30
37
var project = await workspace . OpenProjectAsync ( "../../../KubeOps.Operator.Test.csproj" ) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,15 @@ static MlcProvider()
17
17
18
18
public async Task InitializeAsync ( )
19
19
{
20
- using var workspace = MSBuildWorkspace . Create ( ) ;
20
+ var assemblyConfigurationAttribute =
21
+ typeof ( MlcProvider ) . Assembly . GetCustomAttribute < AssemblyConfigurationAttribute > ( ) ;
22
+ var buildConfigurationName = assemblyConfigurationAttribute ? . Configuration ?? "Debug" ;
23
+
24
+ using var workspace = MSBuildWorkspace . Create ( new Dictionary < string , string >
25
+ {
26
+ { "Configuration" , buildConfigurationName } ,
27
+ } ) ;
28
+
21
29
workspace . SkipUnrecognizedProjects = true ;
22
30
workspace . LoadMetadataForReferencedProjects = true ;
23
31
var project = await workspace . OpenProjectAsync ( "../../../KubeOps.Transpiler.Test.csproj" ) ;
Original file line number Diff line number Diff line change 10
10
href : src/KubeOps.Cli/README.md
11
11
- name : KubeOps Generator
12
12
href : src/KubeOps.Generator/README.md
13
- - name : KubeOps Operator
14
- href : src/KubeOps.Operator/README.md
15
13
- name : KubeOps Kubernetes Client
16
14
href : src/KubeOps.KubernetesClient/README.md
15
+ - name : KubeOps Operator
16
+ href : src/KubeOps.Operator/README.md
17
17
- name : KubeOps Operator Web
18
18
href : src/KubeOps.Operator.Web/README.md
19
19
- name : KubeOps Transpiler
You can’t perform that action at this time.
0 commit comments