1717 BuildPlatform : ' Any CPU'
1818 ContinuousIntegrationBuild : ' true'
1919 DotNet6Version : ' 6.x'
20- DotNet7Version : ' 7.x'
2120 DotNet8Version : ' 8.x'
21+ DotNet9Version : ' 9.x'
2222
2323jobs :
2424 BuildAndTest :
@@ -39,18 +39,23 @@ jobs:
3939
4040 steps :
4141 - name : Checkout
42- uses : actions/checkout@v2
42+ uses : actions/checkout@v4
4343 with :
4444 fetch-depth : 0
4545
46- - name : Install .NET ${{ env.DotNet6Version }}, .NET ${{ env.DotNet7Version }}, and .NET ${{ env.DotNet8Version }}
47- uses : actions/setup-dotnet@v3
46+ - name : Install .NET ${{ env.DotNet6Version }} and .NET ${{ env.DotNet8Version }}
47+ uses : actions/setup-dotnet@v4
4848 with :
4949 dotnet-version : |
5050 ${{ env.DotNet6Version }}
51- ${{ env.DotNet7Version }}
5251 ${{ env.DotNet8Version }}
5352
53+ - name : Install .NET ${{ env.DotNet9Version }}
54+ uses : actions/setup-dotnet@v4
55+ with :
56+ dotnet-version : ${{ env.DotNet9Version }}
57+ dotnet-quality : ' preview'
58+
5459 - name : Build Solution
5560 run : dotnet build "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/build.binlog"
5661
@@ -62,22 +67,22 @@ jobs:
6267 if : ${{ matrix.name != 'MacOS' }}
6368 run : dotnet test --logger trx --no-restore --no-build --framework net6.0 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net6.0.binlog"
6469
65- - name : Run Unit Tests (.NET 7)
66- run : dotnet test --logger trx --no-restore --no-build --framework net7.0 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net7.0.binlog"
67-
6870 - name : Run Unit Tests (.NET 8)
6971 run : dotnet test --logger trx --no-restore --no-build --framework net8.0 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net8.0.binlog"
72+
73+ - name : Run Unit Tests (.NET 9)
74+ run : dotnet test --logger trx --no-restore --no-build --framework net9.0 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net9.0.binlog"
7075
7176 - name : Upload Test Results
72- uses : actions/upload-artifact@v2
77+ uses : actions/upload-artifact@v4
7378 if : success() || failure()
7479 with :
7580 name : test-results-${{ matrix.name }}
7681 path : ' **/TestResults/*.trx'
7782 if-no-files-found : error
7883
7984 - name : Upload Artifacts
80- uses : actions/upload-artifact@v2
85+ uses : actions/upload-artifact@v4
8186 if : success() || failure()
8287 with :
8388 name : ${{ env.ArtifactsDirectoryName }}-${{ matrix.name }}
0 commit comments