-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to .NET 9 GA. Update some test dependencies. (#2990)
* Update to .NET 9 GA. Update some test dependencies. * Remove installing extra SDKs in YAML. * Add TargetNetNext flag. * Update template-Build-run-tests-sign.yml * Nit. * Update aot-check.yml * Update yaml. * Fix AOT test. * Add strong name bypass
- Loading branch information
Showing
12 changed files
with
50 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,14 +14,19 @@ on: | |
jobs: | ||
analyze: | ||
runs-on: windows-latest | ||
name: Wilson GitHub AOT check | ||
name: "AOT check" | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Setup .NET 9.0.x | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 9.0.x | ||
|
||
- name: Runs powershell script | ||
id: aot-powershell | ||
run: build\test-aot.ps1 'net8.0' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: .NET Core | ||
name: "Run unit tests" | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -18,48 +18,43 @@ on: | |
- dev | ||
|
||
env: | ||
TargetNet9: True | ||
TargetNet8: True | ||
TargetNetNext: True | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
continue-on-error: true | ||
name: Wilson GitHub Action Test | ||
continue-on-error: false | ||
name: "Build and run unit tests" | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
|
||
- name: Setup .NET 6.0.x | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 6.0.x | ||
- name: Setup .NET 8.0.x | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 8.0.x | ||
- name: Setup .NET 9.0.x | ||
uses: actions/[email protected] | ||
|
||
- name: Setup .NET 9.x | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 9.0.100-rc.2.24474.11 | ||
dotnet-version: 9.x | ||
|
||
- name: Strong name bypass | ||
run: | | ||
regedit /s .\build\strongNameBypass.reg | ||
- name: Run the tests | ||
run: dotnet test Wilson.sln --collect:"XPlat Code Coverage" --settings:./build/CodeCoverage.runsettings | ||
|
||
- name: Create code coverage report | ||
run: | | ||
dotnet tool install -g dotnet-reportgenerator-globaltool | ||
dotnet tool install -g dotnet-reportgenerator-globaltool --version 5.4.1 | ||
reportgenerator -reports:./**/coverage.cobertura.xml -targetdir:CodeCoverage -reporttypes:'MarkdownSummaryGithub;Cobertura' | ||
- name: Write Coverage to Job Summary | ||
- name: Write coverage to job summary | ||
shell: bash | ||
run: | | ||
cat CodeCoverage/SummaryGithub.md >> $GITHUB_STEP_SUMMARY | ||
echo "COMMENT_CONTENT_ENV_VAR<<EOF" >> $GITHUB_ENV | ||
echo $(cat CodeCoverage/SummaryGithub.md) >> $GITHUB_ENV | ||
echo "EOF" >> $GITHUB_ENV | ||
- name: Comment Coverage in PR | ||
- name: Comment coverage in PR | ||
uses: actions/github-script@v7 | ||
id: comment | ||
with: | ||
|
@@ -73,4 +68,4 @@ jobs: | |
# Run baseline package validation | ||
- name: Pack | ||
run: dotnet pack Product.proj --no-restore --no-build | ||
run: dotnet pack Product.proj --no-restore --no-build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<SrcTargets Condition="'$(LocalBuild)' != 'True'">net462;net472;netstandard2.0;net6.0;net8.0</SrcTargets> | ||
<SrcTargets Condition="'$(LocalBuild)' == 'True'">netstandard2.0;net8.0</SrcTargets> | ||
<SrcTargets Condition="'$(TargetNet9)' == 'True'">$(SrcTargets);net9.0</SrcTargets> | ||
<SrcTargets Condition="'$(LocalBuild)' != 'True'">net462;net472;netstandard2.0;net6.0;net8.0;net9.0</SrcTargets> | ||
<SrcTargets Condition="'$(LocalBuild)' == 'True'">netstandard2.0;net8.0;net9.0</SrcTargets> | ||
<SrcTargets Condition="'$(TargetNetNext)'== 'True'">$(SrcTargets);</SrcTargets> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<TestTargets Condition="'$(LocalBuild)' != 'True'">net462;net472;net6.0;net8.0</TestTargets> | ||
<TestTargets Condition="'$(LocalBuild)' == 'True'">net8.0</TestTargets> | ||
<TestTargets Condition="'$(TargetNet9)' == 'True'">$(TestTargets);net9.0</TestTargets> | ||
</PropertyGroup> | ||
<TestTargets Condition="'$(LocalBuild)' != 'True'">net462;net472;net6.0;net8.0;net9.0</TestTargets> | ||
<TestTargets Condition="'$(LocalBuild)' == 'True'">net8.0;net9.0</TestTargets> | ||
<TestTargets Condition="'$(TargetNetNext)'== 'True'">$(TestTargets);</TestTargets> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ityModel.AotCompatibility.TestApp/Microsoft.IdentityModel.AotCompatibility.TestApp.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters