From 9ceaeedf5dcacac7ce2c2963b0c87a4e6b8547d7 Mon Sep 17 00:00:00 2001 From: Vitaliy Fedorchenko Date: Tue, 11 Jun 2024 18:34:18 +0300 Subject: [PATCH] CI: added GitHub action to build/run tests (switched tests to net8.0) --- .github/workflows/dotnet-test.yml | 25 ++++++++++++++++++++++ src/NReco.Csv.Tests/NReco.Csv.Tests.csproj | 9 ++++---- 2 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/dotnet-test.yml diff --git a/.github/workflows/dotnet-test.yml b/.github/workflows/dotnet-test.yml new file mode 100644 index 0000000..989a6f1 --- /dev/null +++ b/.github/workflows/dotnet-test.yml @@ -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 diff --git a/src/NReco.Csv.Tests/NReco.Csv.Tests.csproj b/src/NReco.Csv.Tests/NReco.Csv.Tests.csproj index 5ceef5d..9b94aba 100644 --- a/src/NReco.Csv.Tests/NReco.Csv.Tests.csproj +++ b/src/NReco.Csv.Tests/NReco.Csv.Tests.csproj @@ -1,7 +1,7 @@  - netcoreapp3.1 + net8.0 NReco.Csv.Tests NReco.Csv.Tests true @@ -15,10 +15,9 @@ - - - - + + +