@@ -18,45 +18,47 @@ jobs:
1818 runs-on : ubuntu-latest
1919 strategy :
2020 matrix :
21- dotnet : [ '6.0.x ', '10.0.x ' ]
21+ dotnet : [ '6.0', '8.0 ', '10.0' ]
2222
2323 steps :
24- - name : Install dependencies
25- run : sudo apt install -y mono-devel
26- - uses : actions/checkout@v3
24+ # - name: Install dependencies
25+ # run: sudo apt install -y mono-devel
26+ - uses : actions/checkout@v4
2727 - name : Setup .NET
28- id : dotnet-version
29- uses : actions/setup-dotnet@v3
28+ uses : actions/setup-dotnet@v4
29+ id : stepid
3030 with :
3131 dotnet-version : ${{ matrix.dotnet }}
32+ # By default, tests will be executed under the latest installed version!
3233 - name : Create temporary global.json
33- run : echo '{"sdk":{"version":"${{ steps.dotnet-version .outputs.dotnet-version }}"}}' > ./global.json
34- - name : Restore dependencies
35- run : dotnet restore
36- - name : Build
37- run : dotnet build --no-restore
38- - name : Test
39- run : dotnet test --no-build --verbosity normal
34+ run : echo '{"sdk":{"version":"${{steps.stepid .outputs.dotnet-version}}"}}' > ./global.json
35+ - name : Restore packages
36+ run : dotnet restore -p:TargetFrameworks="net${{ matrix.dotnet }}" -p:LangVersion="latest"
37+ - name : Build solution
38+ run : dotnet build --no-restore --configuration Release -p:TargetFrameworks="net${{ matrix.dotnet }}" -p:LangVersion="latest" --verbosity normal
39+ - name : Run tests
40+ run : dotnet test --configuration Release -- no-build --verbosity normal -p:TargetFrameworks="net${{ matrix.dotnet }}" -p:LangVersion="latest"
4041
4142 windows :
4243
4344 runs-on : windows-latest
4445 strategy :
4546 matrix :
46- dotnet : [ '6.0.x ' ]
47+ dotnet : [ '6.0', '8.0', '10.0 ' ]
4748
4849 steps :
49- - uses : actions/checkout@v3
50+ - uses : actions/checkout@v4
5051 - name : Setup .NET
51- id : dotnet-version
52- uses : actions/setup-dotnet@v3
52+ uses : actions/setup-dotnet@v4
53+ id : stepid
5354 with :
5455 dotnet-version : ${{ matrix.dotnet }}
56+ # By default, tests will be executed under the latest installed version!
5557 - name : Create temporary global.json
56- run : echo '{"sdk":{"version":"${{ steps.dotnet-version .outputs.dotnet-version }}"}}' > ./global.json
57- - name : Restore dependencies
58- run : dotnet restore
59- - name : Build
60- run : dotnet build --no-restore
61- - name : Test
62- run : dotnet test --no-build --verbosity normal
58+ run : echo '{"sdk":{"version":"${{steps.stepid .outputs.dotnet-version}}"}}' > ./global.json
59+ - name : Restore packages
60+ run : dotnet restore -p:TargetFrameworks="net${{ matrix.dotnet }}" -p:LangVersion="latest"
61+ - name : Build solution
62+ run : dotnet build --no-restore --configuration Release -p:TargetFrameworks="net${{ matrix.dotnet }}" -p:LangVersion="latest" --verbosity normal
63+ - name : Run tests
64+ run : dotnet test --configuration Release -- no-build --verbosity normal -p:TargetFrameworks="net${{ matrix.dotnet }}" -p:LangVersion="latest"
0 commit comments