Skip to content

Commit 15d996b

Browse files
authored
Merge pull request #71 from thefringeninja/net76
drop netcoreapp3.1 support; add support for net6.0 and net7.0
2 parents f29fb7f + 0eb8132 commit 15d996b

File tree

3 files changed

+23
-38
lines changed

3 files changed

+23
-38
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
framework: [netcoreapp3.1, net5.0, net48]
21+
framework: [net48, net5.0, net6.0, net7.0]
2222
os: [ubuntu-latest]
2323
test: [""]
2424
configuration: [release]
@@ -39,15 +39,13 @@ jobs:
3939
- name: Pull EventStore Image
4040
run: |
4141
docker pull ghcr.io/eventstore/eventstore:${{ matrix.docker-tag }}
42-
- name: Install netcoreapp3.1
43-
uses: actions/setup-dotnet@v1
44-
if: matrix.framework == 'netcoreapp3.1'
42+
- name: Install dotnet
43+
uses: actions/setup-dotnet@v3
4544
with:
46-
dotnet-version: 3.1.x
47-
- name: Install net5.0
48-
uses: actions/setup-dotnet@v1
49-
with:
50-
dotnet-version: 5.0.x
45+
dotnet-version: |
46+
5.0.x
47+
6.0.x
48+
7.0.x
5149
- name: Restore
5250
run: |
5351
dotnet restore
@@ -64,20 +62,9 @@ jobs:
6462
run: |
6563
./gencert.sh
6664
dotnet test --configuration ${{ matrix.configuration }} --blame \
67-
--logger:html --logger:"GitHubActions;report-warnings=false" --logger:"console;verbosity=normal" \
68-
--results-directory=$(pwd)/test-results/test/EventStore.ClientAPI${{ matrix.test }}.Tests \
65+
--logger:"GitHubActions;report-warnings=false" --logger:"console;verbosity=normal" \
6966
--framework ${{ matrix.framework }} \
7067
test/EventStore.ClientAPI${{ matrix.test }}.Tests
71-
- name: Collect Test Results
72-
if: always()
73-
run: |
74-
echo $(find ./test-results -name "*.html" | xargs cat) > test-results.html
75-
- name: Publish Test Results (HTML)
76-
uses: actions/upload-artifact@v1
77-
if: always()
78-
with:
79-
path: test-results.html
80-
name: test-results-${{ matrix.configuration }}-${{ matrix.os }}-${{ matrix.framework }}-EventStore.ClientAPI${{ matrix.test }}.html
8168
publish:
8269
timeout-minutes: 5
8370
needs: [build-dotnet]
@@ -96,14 +83,13 @@ jobs:
9683
dotnet tool restore
9784
version=$(dotnet tool run minver -- --tag-prefix=v)
9885
echo "version=${version}" >> $GITHUB_OUTPUT
99-
- name: Install netcoreapp3.1
100-
uses: actions/setup-dotnet@v1
101-
with:
102-
dotnet-version: 3.1.x
103-
- name: Install net5.0
104-
uses: actions/setup-dotnet@v1
86+
- name: Install dotnet
87+
uses: actions/setup-dotnet@v3
10588
with:
106-
dotnet-version: 5.0.x
89+
dotnet-version: |
90+
5.0.x
91+
6.0.x
92+
7.0.x
10793
- name: Dotnet Pack
10894
run: |
10995
dotnet pack /p:Version=${{ steps.get_version.outputs.version }} --configuration=Release --output=./packages \

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
33
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
4-
<TargetFrameworks>netcoreapp3.1;net48;net5.0</TargetFrameworks>
4+
<TargetFrameworks>net48;net5.0;net6.0;net7.0</TargetFrameworks>
55
<LangVersion>latest</LangVersion>
66
<RootNamespace>EventStore.ClientAPI</RootNamespace>
77
<UseLinkBase>true</UseLinkBase>

test/Directory.Build.props

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
<Project>
2+
23
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))"/>
3-
<PropertyGroup>
4-
<RootNamespace>EventStore.ClientAPI</RootNamespace>
5-
<UseLinkBase>true</UseLinkBase>
6-
</PropertyGroup>
4+
75
<ItemGroup>
8-
<PackageReference Include="Ductus.FluentDocker" Version="2.10.7"/>
9-
<PackageReference Include="GitHubActionsTestLogger" Version="1.2.0"/>
10-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.1"/>
6+
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1"/>
7+
<PackageReference Include="Ductus.FluentDocker" Version="2.10.57"/>
8+
<PackageReference Include="GitHubActionsTestLogger" Version="2.0.1"/>
9+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0"/>
1110
<PackageReference Include="Polly" Version="7.2.1"/>
12-
<PackageReference Include="xunit" Version="2.4.1"/>
13-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
11+
<PackageReference Include="xunit" Version="2.4.2"/>
12+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
1413
<PrivateAssets>all</PrivateAssets>
1514
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1615
</PackageReference>

0 commit comments

Comments
 (0)