Skip to content

Commit

Permalink
Migrate to .NET 8 LTS (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
webbju authored Oct 5, 2024
1 parent 16dd396 commit b750b28
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 1,272 deletions.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

version: 2
updates:
- package-ecosystem: "" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "weekly"
25 changes: 10 additions & 15 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,21 @@ on:
jobs:

build:
runs-on: windows-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v2

- uses: actions/setup-dotnet@v1
runs-on: ${{ matrix.os }}

- uses: NuGet/setup-nuget@v1
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- uses: actions/setup-dotnet@v4

- run: dotnet restore .

- run: dotnet build --configuration Debug .\GdbMi.sln
- run: dotnet build --configuration Debug

- run: dotnet build --configuration Release .\GdbMi.sln
- run: dotnet build --configuration Release

- run: dotnet test --configuration Release .\GdbMi.sln
- run: dotnet test --configuration Release
6 changes: 6 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Project>
<PropertyGroup Label="Test dependencies">
<MSTestVersion>3.6.1</MSTestVersion>
<MicrosoftNETTestSdkVersion>17.11.1</MicrosoftNETTestSdkVersion>
</PropertyGroup>
</Project>
16 changes: 8 additions & 8 deletions src/GdbMi.Tests/GdbMi.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>

<TargetFramework>net8.0</TargetFramework>
<IsTestProject>true</IsTestProject>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
<PackageReference Include="Moq" Version="4.18.1" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.10" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
<PackageReference Include="coverlet.collector" Version="3.1.2">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftNETTestSdkVersion)" />
<PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="MSTest.TestAdapter" Version="$(MSTestVersion)" />
<PackageReference Include="MSTest.TestFramework" Version="$(MSTestVersion)" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Loading

0 comments on commit b750b28

Please sign in to comment.