Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 3a93fee

Browse files
authored
Merge pull request #46 from IharYakimush/workflow
tests with different frameworks
2 parents 6d65555 + 3c742d5 commit 3a93fee

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

.github/workflows/dotnet.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
13-
1412
steps:
1513
- name: Set Timezone
1614
uses: szenius/[email protected]
@@ -19,13 +17,21 @@ jobs:
1917
timezoneMacos: "Asia/Singapore"
2018
timezoneWindows: "Singapore Standard Time"
2119
- uses: actions/checkout@v3
22-
- name: Setup .NET
20+
- name: Setup net6.0
2321
uses: actions/setup-dotnet@v2
2422
with:
2523
dotnet-version: 6.0.x
24+
- name: Setup netcoreapp3.1
25+
uses: actions/setup-dotnet@v2
26+
with:
27+
dotnet-version: 3.1.x
2628
- name: Restore dependencies
2729
run: dotnet restore
28-
- name: Build
30+
- name: Build 6
31+
run: dotnet build --no-restore --configuration Debug
32+
- name: Test 6
33+
run: dotnet test Community.Data.OData.Linq.xTests --no-build --verbosity normal --configuration Debug
34+
- name: Build 3.1
2935
run: dotnet build --no-restore --configuration Debug
30-
- name: Test
36+
- name: Test 3.1
3137
run: dotnet test Community.Data.OData.Linq.xTests --no-build --verbosity normal --configuration Debug

Community.Data.OData.Linq.xTests/Community.OData.Linq.xTests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFrameworks>net6.0;netcoreapp3.1</TargetFrameworks>
55

66
<IsPackable>false</IsPackable>
77

@@ -10,7 +10,7 @@
1010
<ApplicationIcon />
1111

1212
<OutputType>Library</OutputType>
13-
13+
<LangVersion>9.0</LangVersion>
1414
<StartupObject />
1515
</PropertyGroup>
1616

tests.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
dotnet restore
2-
dotnet build --no-restore --configuration Debug
3-
dotnet test Community.Data.OData.Linq.xTests -f net6.0 --no-build --verbosity normal --configuration Debug
1+
dotnet test Community.Data.OData.Linq.xTests -f net6.0 --verbosity normal --configuration Debug
2+
dotnet test Community.Data.OData.Linq.xTests -f netcoreapp3.1 --verbosity normal --configuration Debug

0 commit comments

Comments
 (0)