1
- name : " Id Web GitHub Action Test "
1
+ name : " Run unit tests "
2
2
3
3
on :
4
4
push :
@@ -17,60 +17,60 @@ jobs:
17
17
build :
18
18
runs-on : windows-latest
19
19
continue-on-error : true
20
- name : " Id Web GitHub Action Test "
20
+ name : " Build and run unit tests "
21
21
steps :
22
22
- name : Checkout repository
23
- uses : actions/checkout@v2.3.4
23
+ uses : actions/checkout@v4.2.1
24
24
25
- - name : Setup .NET 6.0.301
26
- uses : actions/setup-dotnet@v2.1.0
25
+ - name : Setup .NET 6.0.x
26
+ uses : actions/setup-dotnet@v4.0.1
27
27
with :
28
- dotnet-version : 6.0.301
28
+ dotnet-version : 6.0.x
29
29
30
30
- name : Setup .NET 7.0.x
31
- uses : actions/setup-dotnet@v2.1.0
31
+ uses : actions/setup-dotnet@v4.0.1
32
32
with :
33
33
dotnet-version : 7.0.x
34
34
35
35
- name : Setup .NET 8.0.x
36
- uses : actions/setup-dotnet@v2.1.0
36
+ uses : actions/setup-dotnet@v4.0.1
37
37
with :
38
38
dotnet-version : 8.0.x
39
39
40
40
- name : Setup .NET 9.0.x
41
- uses : actions/setup-dotnet@v2.1.0
41
+ uses : actions/setup-dotnet@v4.0.1
42
42
with :
43
43
dotnet-version : 9.0.100-rc.2.24474.11
44
44
45
- - name : ' Setup msbuild '
46
- uses : microsoft/setup-msbuild@v1.1
45
+ - name : ' Setup MSBuild '
46
+ uses : microsoft/setup-msbuild@v2
47
47
with :
48
48
msbuild-architecture : x64
49
49
50
50
- name : Setup wasm-tools
51
51
run : dotnet workload install wasm-tools
52
52
53
- - name : Build IdWeb for release
53
+ - name : Build solution
54
54
run : msbuild Microsoft.Identity.Web.sln -r -t:build -verbosity:m -property:Configuration=Release
55
55
56
56
- name : Test with .NET 6.0.x
57
- run : dotnet test --no-restore --no-build Microsoft.Identity.Web.sln -f net6.0 -p:FROM_GITHUB_ACTION=true --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName!~IntegrationTests)"
57
+ run : dotnet test --no-restore --no-build Microsoft.Identity.Web.sln -f net6.0 -v normal - p:FROM_GITHUB_ACTION=true --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName!~IntegrationTests)&(FullyQualifiedName!~TokenAcquirerTests )"
58
58
59
59
- name : Test with .NET 7.0.x
60
- run : dotnet test --no-restore --no-build Microsoft.Identity.Web.sln -f net7.0 -p:FROM_GITHUB_ACTION=true --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName= IntegrationTests)"
60
+ run : dotnet test --no-restore --no-build Microsoft.Identity.Web.sln -f net7.0 -v normal - p:FROM_GITHUB_ACTION=true --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName!~ IntegrationTests)&(FullyQualifiedName!~TokenAcquirerTests )"
61
61
62
62
- name : Test with .NET 8.0.x
63
- run : dotnet test --no-restore --no-build Microsoft.Identity.Web.sln -f net8.0 -p:FROM_GITHUB_ACTION=true --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName= IntegrationTests)"
63
+ run : dotnet test --no-restore --no-build Microsoft.Identity.Web.sln -f net8.0 -v normal - p:FROM_GITHUB_ACTION=true --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName!~ IntegrationTests)&(FullyQualifiedName!~TokenAcquirerTests )"
64
64
65
65
- name : Test with .NET 9.0.x
66
- run : dotnet test --no-restore --no-build Microsoft.Identity.Web.sln -f net9.0 -p:FROM_GITHUB_ACTION=true -p:TargetNet9=True --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName= IntegrationTests)"
66
+ run : dotnet test --no-restore --no-build Microsoft.Identity.Web.sln -f net9.0 -v normal - p:FROM_GITHUB_ACTION=true -p:TargetNet9=True --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName!~ IntegrationTests)&(FullyQualifiedName!~TokenAcquirerTests )"
67
67
68
68
- name : Test with .NET 462
69
- run : dotnet test --no-restore --no-build Microsoft.Identity.Web.sln -f net462 -p:FROM_GITHUB_ACTION=true --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName= IntegrationTests)"
69
+ run : dotnet test --no-restore --no-build Microsoft.Identity.Web.sln -f net462 -v normal - p:FROM_GITHUB_ACTION=true --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName!~ IntegrationTests)"
70
70
71
71
- name : Test with .NET 472
72
- run : dotnet test --no-restore --no-build Microsoft.Identity.Web.sln -f net472 -p:FROM_GITHUB_ACTION=true --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName= IntegrationTests)"
72
+ run : dotnet test --no-restore --no-build Microsoft.Identity.Web.sln -f net472 -v normal - p:FROM_GITHUB_ACTION=true --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName!~ IntegrationTests)"
73
73
74
- - name : Test with .NET standard2 .0
75
- run : dotnet test --no-restore --no-build Microsoft.Identity.Web.sln -f netstandard2.0 -p:FROM_GITHUB_ACTION=true --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName= IntegrationTests)"
74
+ - name : Test with .NET Standard 2 .0
75
+ run : dotnet test --no-restore --no-build Microsoft.Identity.Web.sln -f netstandard2.0 -v normal - p:FROM_GITHUB_ACTION=true --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName!~ IntegrationTests)"
76
76
0 commit comments