From 6b1f9df7320f58362b70fefb758d9168c8785c29 Mon Sep 17 00:00:00 2001 From: Lukasz Dobrzynski Date: Tue, 19 Dec 2023 10:16:46 +0100 Subject: [PATCH] Updated RavenDB client and .Net version --- .github/workflows/build_back-end.yml | 2 +- .github/workflows/db_migration.yml | 4 ++-- .github/workflows/deploy.yml | 4 ++-- Directory.Build.props | 2 +- README.md | 4 ++-- back-end/Database/Database.csproj | 4 ++-- back-end/Domain/Domain.csproj | 2 +- back-end/README.md | 8 ++++---- devops/Dockerfile | 4 ++-- tests/Domain.Tests/Domain.Tests.csproj | 1 + tests/README.md | 2 +- tools/TicketImporter/TicketImporter.csproj | 2 +- 12 files changed, 20 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build_back-end.yml b/.github/workflows/build_back-end.yml index 9dac63c..417c143 100644 --- a/.github/workflows/build_back-end.yml +++ b/.github/workflows/build_back-end.yml @@ -15,7 +15,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 6.0.302 + dotnet-version: 8.0.100 - name: Install dependencies run: dotnet restore - name: Build diff --git a/.github/workflows/db_migration.yml b/.github/workflows/db_migration.yml index ae044d7..65384e6 100644 --- a/.github/workflows/db_migration.yml +++ b/.github/workflows/db_migration.yml @@ -13,13 +13,13 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 6.0.302 + dotnet-version: 8.0.100 - name: Build run: dotnet build tools/Database.Migration/Database.Migration.csproj --configuration Release - name: Run migration - run: dotnet tools/Database.Migration/bin/Release/net6.0/Database.Migration.dll + run: dotnet tools/Database.Migration/bin/Release/net8.0/Database.Migration.dll env: Database__RavenDbUrls__0: ${{secrets.RavenDB_URL}} Database__DbName: ${{secrets.RavenDB_DB_Name}} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5d3a218..2039c7d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,13 +13,13 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 6.0.302 + dotnet-version: 8.0.100 - name: Build run: dotnet build tools/Database.Migration/Database.Migration.csproj --configuration Release - name: Run migration - run: dotnet tools/Database.Migration/bin/Release/net6.0/Database.Migration.dll + run: dotnet tools/Database.Migration/bin/Release/net8.0/Database.Migration.dll env: Database__RavenDbUrls__0: ${{secrets.RavenDB_URL}} Database__DbName: ${{secrets.RavenDB_DB_Name}} diff --git a/Directory.Build.props b/Directory.Build.props index a6460bf..0f30e14 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - net6.0 + net8.0 latest enable strict diff --git a/README.md b/README.md index 2ce036f..1ba8023 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ ![Screenshot](./documentation/screenshot.png) ## Technologies -* ASP.NET Core 6 -* RavenDB 5.3 +* ASP.NET Core 8 +* RavenDB 6.0.1 * Angular 12 It has minimum third-party dependencies and heaps of best practices. diff --git a/back-end/Database/Database.csproj b/back-end/Database/Database.csproj index 044a991..73e5986 100644 --- a/back-end/Database/Database.csproj +++ b/back-end/Database/Database.csproj @@ -9,8 +9,8 @@ - - + + diff --git a/back-end/Domain/Domain.csproj b/back-end/Domain/Domain.csproj index 7295672..d13dcf3 100644 --- a/back-end/Domain/Domain.csproj +++ b/back-end/Domain/Domain.csproj @@ -9,7 +9,7 @@ - + diff --git a/back-end/README.md b/back-end/README.md index f8d101c..251dffe 100644 --- a/back-end/README.md +++ b/back-end/README.md @@ -2,8 +2,8 @@ ## Technologies -- ASP .NET Core 6 -- RavenDB 5.3 +- ASP .NET Core 8 +- RavenDB 6.0.1 It has minimum third-party dependencies and heaps of best practices like the [Domain Driven Design](https://en.wikipedia.org/wiki/Domain-driven_design) (DDD), [Command Query Responsibility Segregation](https://martinfowler.com/bliki/CQRS.html) (CQRS), etc. @@ -28,8 +28,8 @@ Firstly, check out the GIT repo. ### Compile and run the tests -1. Install [.NET SDK](https://dotnet.microsoft.com/download) v6.x.
- Note that while the back-end would run on any version of .NET 6, the embedded _RavenDB_ used for the test project has a strong dependency on the _.NET SDK_ version. Check the required version in the [GitHub Action](../.github/workflows/dotnet-core.yml) used to run tests. +1. Install [.NET SDK](https://dotnet.microsoft.com/download) v8.x.
+ Note that while the back-end would run on any version of .NET 8, the embedded _RavenDB_ used for the test project has a strong dependency on the _.NET SDK_ version. Check the required version in the [GitHub Action](../.github/workflows/dotnet-core.yml) used to run tests. 2. Open the solution and run the tests located under ['./tests'](../tests/) folder.
The tests that work against a real embedded _RavenDB_ database and cover multiple scenarios. diff --git a/devops/Dockerfile b/devops/Dockerfile index dae400a..948707b 100644 --- a/devops/Dockerfile +++ b/devops/Dockerfile @@ -1,5 +1,5 @@ # See the list of tags at https://mcr.microsoft.com/v2/dotnet/sdk/tags/list -FROM mcr.microsoft.com/dotnet/sdk:6.0.302 as back-end-build +FROM mcr.microsoft.com/dotnet/sdk:8.0.100 as back-end-build WORKDIR /build COPY . /build @@ -16,7 +16,7 @@ RUN npm install \ && node_modules/.bin/ng build --prod # See the list of tags at https://mcr.microsoft.com/v2/dotnet/aspnet/tags/list -FROM mcr.microsoft.com/dotnet/aspnet:6.0.7 AS runtime +FROM mcr.microsoft.com/dotnet/aspnet:8.0.0 AS runtime COPY --from=back-end-build /publish /app COPY --from=front-end-build /client/dist /app/wwwroot diff --git a/tests/Domain.Tests/Domain.Tests.csproj b/tests/Domain.Tests/Domain.Tests.csproj index a1a728a..ae5669f 100644 --- a/tests/Domain.Tests/Domain.Tests.csproj +++ b/tests/Domain.Tests/Domain.Tests.csproj @@ -10,6 +10,7 @@ + diff --git a/tests/README.md b/tests/README.md index 66e45e1..0061089 100644 --- a/tests/README.md +++ b/tests/README.md @@ -9,7 +9,7 @@ Integration tests to ensure the expected behaviour around querying/filtering dat ## Technology * xUnit, NSubstitute * RavenDB.TestDriver -* .NET 6 +* .NET 8 The tests that work against a real embedded _RavenDB_ database. diff --git a/tools/TicketImporter/TicketImporter.csproj b/tools/TicketImporter/TicketImporter.csproj index 3b4698b..d678305 100644 --- a/tools/TicketImporter/TicketImporter.csproj +++ b/tools/TicketImporter/TicketImporter.csproj @@ -12,7 +12,7 @@ - +