From 23256f01d6816ed95625b60a04b59446eea151f5 Mon Sep 17 00:00:00 2001 From: Josef Dvorak Date: Mon, 8 Jan 2024 20:50:51 +1100 Subject: [PATCH 1/3] Create dotnet.yml --- .github/workflows/dotnet.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 00000000..bf986cda --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,28 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +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: 6.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal From d9d8f7c8835457cfda72e28164af90b16c07482f Mon Sep 17 00:00:00 2001 From: Josef Dvorak Date: Mon, 8 Jan 2024 21:01:24 +1100 Subject: [PATCH 2/3] Change Target framework to .NET 8.0 --- KenticoInspector.Actions/KenticoInspector.Actions.csproj | 2 +- .../KenticoInspector.Core.Tests.csproj | 2 +- KenticoInspector.Core/KenticoInspector.Core.csproj | 4 ++-- .../KenticoInspector.Infrastructure.Tests.csproj | 2 +- .../KenticoInspector.Infrastructure.csproj | 2 +- .../KenticoInspector.Reports.Tests.csproj | 2 +- KenticoInspector.Reports/KenticoInspector.Reports.csproj | 4 ++-- .../KenticoInspector.WebApplication.csproj | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/KenticoInspector.Actions/KenticoInspector.Actions.csproj b/KenticoInspector.Actions/KenticoInspector.Actions.csproj index cb1072d5..bca1f1bc 100644 --- a/KenticoInspector.Actions/KenticoInspector.Actions.csproj +++ b/KenticoInspector.Actions/KenticoInspector.Actions.csproj @@ -1,7 +1,7 @@  - netcoreapp2.2 + net8.0 diff --git a/KenticoInspector.Core.Tests/KenticoInspector.Core.Tests.csproj b/KenticoInspector.Core.Tests/KenticoInspector.Core.Tests.csproj index 33a955c2..f17452b6 100644 --- a/KenticoInspector.Core.Tests/KenticoInspector.Core.Tests.csproj +++ b/KenticoInspector.Core.Tests/KenticoInspector.Core.Tests.csproj @@ -1,7 +1,7 @@  - netcoreapp2.2 + net8.0 false diff --git a/KenticoInspector.Core/KenticoInspector.Core.csproj b/KenticoInspector.Core/KenticoInspector.Core.csproj index 8fae0dc1..b860dabe 100644 --- a/KenticoInspector.Core/KenticoInspector.Core.csproj +++ b/KenticoInspector.Core/KenticoInspector.Core.csproj @@ -1,7 +1,7 @@ - + - netcoreapp2.2 + net8.0 7.1 diff --git a/KenticoInspector.Infrastructure.Tests/KenticoInspector.Infrastructure.Tests.csproj b/KenticoInspector.Infrastructure.Tests/KenticoInspector.Infrastructure.Tests.csproj index 95c497d4..98b87bd5 100644 --- a/KenticoInspector.Infrastructure.Tests/KenticoInspector.Infrastructure.Tests.csproj +++ b/KenticoInspector.Infrastructure.Tests/KenticoInspector.Infrastructure.Tests.csproj @@ -1,7 +1,7 @@  - netcoreapp2.2 + net8.0 false diff --git a/KenticoInspector.Infrastructure/KenticoInspector.Infrastructure.csproj b/KenticoInspector.Infrastructure/KenticoInspector.Infrastructure.csproj index 4253e5dc..4034d81f 100644 --- a/KenticoInspector.Infrastructure/KenticoInspector.Infrastructure.csproj +++ b/KenticoInspector.Infrastructure/KenticoInspector.Infrastructure.csproj @@ -1,7 +1,7 @@  - netcoreapp2.2 + net8.0 7.1 diff --git a/KenticoInspector.Reports.Tests/KenticoInspector.Reports.Tests.csproj b/KenticoInspector.Reports.Tests/KenticoInspector.Reports.Tests.csproj index 4303f4ec..6b8f615c 100644 --- a/KenticoInspector.Reports.Tests/KenticoInspector.Reports.Tests.csproj +++ b/KenticoInspector.Reports.Tests/KenticoInspector.Reports.Tests.csproj @@ -1,7 +1,7 @@  - netcoreapp2.2 + net8.0 false diff --git a/KenticoInspector.Reports/KenticoInspector.Reports.csproj b/KenticoInspector.Reports/KenticoInspector.Reports.csproj index 5e25c3f1..f87a1152 100644 --- a/KenticoInspector.Reports/KenticoInspector.Reports.csproj +++ b/KenticoInspector.Reports/KenticoInspector.Reports.csproj @@ -1,7 +1,7 @@ - + - netcoreapp2.2 + net8.0 7.1 diff --git a/KenticoInspector.WebApplication/KenticoInspector.WebApplication.csproj b/KenticoInspector.WebApplication/KenticoInspector.WebApplication.csproj index e6fead5b..101ad8b0 100644 --- a/KenticoInspector.WebApplication/KenticoInspector.WebApplication.csproj +++ b/KenticoInspector.WebApplication/KenticoInspector.WebApplication.csproj @@ -1,7 +1,7 @@  - netcoreapp2.2 + net8.0 InProcess 7.1 From 9bdb0650e0b06af456f9f20d4c247ac190dd3d62 Mon Sep 17 00:00:00 2001 From: Josef Dvorak Date: Mon, 8 Jan 2024 21:23:53 +1100 Subject: [PATCH 3/3] Update dotnet.yml Disable tests Change version to .NET 8.0 --- .github/workflows/dotnet.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index bf986cda..1ec4edc2 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -19,10 +19,10 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.x + dotnet-version: 8.0.x - name: Restore dependencies run: dotnet restore - name: Build run: dotnet build --no-restore - - name: Test - run: dotnet test --no-build --verbosity normal + # - name: Test + # run: dotnet test --no-build --verbosity normal