Skip to content

Commit

Permalink
Merge pull request #71 from thefringeninja/net76
Browse files Browse the repository at this point in the history
drop netcoreapp3.1 support; add support for net6.0 and net7.0
  • Loading branch information
hayley-jean authored Nov 15, 2022
2 parents f29fb7f + 0eb8132 commit 15d996b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 38 deletions.
42 changes: 14 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
framework: [netcoreapp3.1, net5.0, net48]
framework: [net48, net5.0, net6.0, net7.0]
os: [ubuntu-latest]
test: [""]
configuration: [release]
Expand All @@ -39,15 +39,13 @@ jobs:
- name: Pull EventStore Image
run: |
docker pull ghcr.io/eventstore/eventstore:${{ matrix.docker-tag }}
- name: Install netcoreapp3.1
uses: actions/setup-dotnet@v1
if: matrix.framework == 'netcoreapp3.1'
- name: Install dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.x
- name: Install net5.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: |
5.0.x
6.0.x
7.0.x
- name: Restore
run: |
dotnet restore
Expand All @@ -64,20 +62,9 @@ jobs:
run: |
./gencert.sh
dotnet test --configuration ${{ matrix.configuration }} --blame \
--logger:html --logger:"GitHubActions;report-warnings=false" --logger:"console;verbosity=normal" \
--results-directory=$(pwd)/test-results/test/EventStore.ClientAPI${{ matrix.test }}.Tests \
--logger:"GitHubActions;report-warnings=false" --logger:"console;verbosity=normal" \
--framework ${{ matrix.framework }} \
test/EventStore.ClientAPI${{ matrix.test }}.Tests
- name: Collect Test Results
if: always()
run: |
echo $(find ./test-results -name "*.html" | xargs cat) > test-results.html
- name: Publish Test Results (HTML)
uses: actions/upload-artifact@v1
if: always()
with:
path: test-results.html
name: test-results-${{ matrix.configuration }}-${{ matrix.os }}-${{ matrix.framework }}-EventStore.ClientAPI${{ matrix.test }}.html
publish:
timeout-minutes: 5
needs: [build-dotnet]
Expand All @@ -96,14 +83,13 @@ jobs:
dotnet tool restore
version=$(dotnet tool run minver -- --tag-prefix=v)
echo "version=${version}" >> $GITHUB_OUTPUT
- name: Install netcoreapp3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Install net5.0
uses: actions/setup-dotnet@v1
- name: Install dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 5.0.x
dotnet-version: |
5.0.x
6.0.x
7.0.x
- name: Dotnet Pack
run: |
dotnet pack /p:Version=${{ steps.get_version.outputs.version }} --configuration=Release --output=./packages \
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<TargetFrameworks>netcoreapp3.1;net48;net5.0</TargetFrameworks>
<TargetFrameworks>net48;net5.0;net6.0;net7.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<RootNamespace>EventStore.ClientAPI</RootNamespace>
<UseLinkBase>true</UseLinkBase>
Expand Down
17 changes: 8 additions & 9 deletions test/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
<Project>

<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))"/>
<PropertyGroup>
<RootNamespace>EventStore.ClientAPI</RootNamespace>
<UseLinkBase>true</UseLinkBase>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Ductus.FluentDocker" Version="2.10.7"/>
<PackageReference Include="GitHubActionsTestLogger" Version="1.2.0"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.1"/>
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1"/>
<PackageReference Include="Ductus.FluentDocker" Version="2.10.57"/>
<PackageReference Include="GitHubActionsTestLogger" Version="2.0.1"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0"/>
<PackageReference Include="Polly" Version="7.2.1"/>
<PackageReference Include="xunit" Version="2.4.1"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="xunit" Version="2.4.2"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit 15d996b

Please sign in to comment.