Skip to content

Commit

Permalink
CI: added GitHub action to build/run tests (switched tests to net8.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
VitaliyMF committed Jun 11, 2024
1 parent 78c6e32 commit 9ceaeed
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/dotnet-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: .NET

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore src
- name: Build
run: dotnet build src --no-restore
- name: Test
run: dotnet test src --no-build --verbosity normal
9 changes: 4 additions & 5 deletions src/NReco.Csv.Tests/NReco.Csv.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>NReco.Csv.Tests</AssemblyName>
<PackageId>NReco.Csv.Tests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
Expand All @@ -15,10 +15,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
<PackageReference Include="xunit" Version="2.2.0" />

<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.1" />
<PackageReference Include="xunit" Version="2.8.1" />
</ItemGroup>

<PropertyGroup>
Expand Down

0 comments on commit 9ceaeed

Please sign in to comment.