14
14
strategy :
15
15
matrix :
16
16
os : [ubuntu-latest, windows-latest, macos-latest]
17
- dotnet : [ '3.1', '5.0', ' 6.0', '8.0' ]
17
+ dotnet : [ '6.0', '8.0' ]
18
18
19
19
steps :
20
20
- uses : actions/checkout@v4
@@ -24,17 +24,11 @@ jobs:
24
24
with :
25
25
dotnet-version : ${{ matrix.dotnet }}
26
26
# By default, tests will be executed under the latest installed version!
27
- # - name: Create temporary global.json
28
- # run: echo '{"sdk":{"version":"${{steps.stepid.outputs.dotnet-version}}"}}' > ./global.json
29
- - name : Restore nuget dependencies
30
- run : dotnet restore
27
+ - name : Create temporary global.json
28
+ run : echo '{"sdk":{"version":"${{steps.stepid.outputs.dotnet-version}}"}}' > ./global.json
29
+ - name : Restore packages
30
+ run : dotnet restore -p:TargetFrameworks="net${{ matrix.dotnet }}" -p:LangVersion="latest"
31
31
- name : Build solution
32
- run : dotnet build --no-restore --configuration Release --verbosity detailed
32
+ run : dotnet build --no-restore --configuration Release -p:TargetFrameworks="net${{ matrix.dotnet }}" -p:LangVersion="latest" - -verbosity detailed
33
33
- name : Run tests
34
- run : dotnet test --configuration Release --no-build --verbosity normal
35
- # - name: Build solution
36
- # # Specify the path to the test project and not the solution because using --framework requires an
37
- # # exact string match in each csproj, but our library uses netstandard2.1 and not a specific netx.y
38
- # run: dotnet build --configuration Release --framework ${{ matrix.dotnet }} SqliteCache.Tests/SqliteCache.Tests.csproj
39
- # - name: Run tests
40
- # run: dotnet test --configuration Release --no-build --verbosity normal --framework ${{ matrix.dotnet }}
34
+ run : dotnet test --configuration Release --no-build --verbosity detailed -p:TargetFrameworks="net${{ matrix.dotnet }}" -p:LangVersion="latest"
0 commit comments