File tree Expand file tree Collapse file tree 4 files changed +50
-3
lines changed Expand file tree Collapse file tree 4 files changed +50
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : .NET
2
+
3
+ on :
4
+ push :
5
+ branches : [ "master" ]
6
+ pull_request :
7
+ branches : [ "master" ]
8
+
9
+ jobs :
10
+ build :
11
+
12
+ runs-on : ${{ matrix.os }}
13
+
14
+ strategy :
15
+ matrix :
16
+ os : [ ubuntu-latest, windows-latest, macos-latest ]
17
+ dotnet : [ '6.0', '8.0' ]
18
+
19
+ steps :
20
+ - uses : actions/checkout@v4
21
+ - name : Setup .NET
22
+ uses : actions/setup-dotnet@v4
23
+ id : stepid
24
+ with :
25
+ dotnet-version : ${{ matrix.dotnet }}
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 packages
30
+ run : dotnet restore -p:TargetFrameworks="net${{ matrix.dotnet }}" -p:LangVersion="latest"
31
+ - name : Build solution
32
+ run : dotnet build --no-restore --configuration Release -p:TargetFrameworks="net${{ matrix.dotnet }}" -p:LangVersion="latest" --verbosity normal
33
+ - name : Run tests
34
+ run : dotnet test --configuration Release --no-build --verbosity normal -p:TargetFrameworks="net${{ matrix.dotnet }}" -p:LangVersion="latest"
Original file line number Diff line number Diff line change 3
3
<PropertyGroup >
4
4
<AssemblyName >NeoSmart.Caching.Sqlite.AspNetCore</AssemblyName >
5
5
<RootNamespace >NeoSmart.Caching.Sqlite.AspNetCore</RootNamespace >
6
- <TargetFramework >netstandard2.1</TargetFramework >
6
+ <TargetFrameworks >netstandard2.1</TargetFrameworks >
7
7
<Nullable >enable</Nullable >
8
8
<LangVersion >11</LangVersion >
9
9
<Version >8.0.0</Version >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFrameworks >net462;netcoreapp3.1;net5.0;net6.0;net8.0</TargetFrameworks >
5
4
<LangVersion >preview</LangVersion >
6
5
<IsPackable >false</IsPackable >
7
6
<AssemblyName >NeoSmart.Caching.Sqlite.Tests</AssemblyName >
8
7
<RootNamespace >NeoSmart.Caching.Sqlite.Tests</RootNamespace >
9
8
<SuppressTfmSupportBuildWarnings >true</SuppressTfmSupportBuildWarnings >
10
9
</PropertyGroup >
11
10
11
+ <!-- Only test net462 if we are building under Windows -->
12
+ <PropertyGroup Condition =" '$(OS)' == 'Windows_NT'" >
13
+ <TargetFrameworks >
14
+ net462;net6.0;net8.0
15
+ </TargetFrameworks >
16
+ </PropertyGroup >
17
+
18
+ <PropertyGroup Condition =" '$(OS)' != 'Windows_NT'" >
19
+ <TargetFrameworks >net6.0;net8.0</TargetFrameworks >
20
+ </PropertyGroup >
21
+
12
22
<ItemGroup >
13
23
<PackageReference Include =" Microsoft.Extensions.DependencyInjection" Version =" 8.0.0" />
14
24
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.9.0" />
30
40
</ItemGroup >
31
41
32
42
</Project >
43
+
44
+ <!-- vim: set sw=2 : -->
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFrameworks >netstandard2.0;netcoreapp3.1;net5.0;net6.0;net8.0</TargetFrameworks >
4
+ <!-- Upstream dependencies have removed support for net5.0 and lower -->
5
+ <TargetFrameworks >netstandard2.0;net6.0;net8.0</TargetFrameworks >
5
6
<LangVersion >9.0</LangVersion >
6
7
<AssemblyName >NeoSmart.Caching.Sqlite</AssemblyName >
7
8
<RootNamespace >NeoSmart.Caching.Sqlite</RootNamespace >
You can’t perform that action at this time.
0 commit comments