diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index fd34f78..124bb68 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -24,7 +24,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: 9.0.x - name: Install report generator run: dotnet tool install --global dotnet-reportgenerator-globaltool - name: Restore dependencies @@ -33,10 +33,10 @@ jobs: run: dotnet build --no-restore - name: Install playwright dependencies shell: pwsh - run: ./test/Blog.Tests/bin/Debug/net8.0/playwright.ps1 install-deps + run: ./test/Blog.Tests/bin/Debug/net9.0/playwright.ps1 install-deps - name: Install playwright shell: pwsh - run: ./test/Blog.Tests/bin/Debug/net8.0/playwright.ps1 install + run: ./test/Blog.Tests/bin/Debug/net9.0/playwright.ps1 install - name: Test project run: dotnet test -e DOTNET_ENVIRONMENT=CI --no-build --verbosity normal -s ./test/Blog.Tests/ci.runsettings - name: Upload test results @@ -49,4 +49,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: playwright-traces - path: ./test/Blog.Tests/bin/Debug/net8.0/playwright-traces \ No newline at end of file + path: ./test/Blog.Tests/bin/Debug/net9.0/playwright-traces diff --git a/src/Blog/Blog.csproj b/src/Blog/Blog.csproj index fa8d43f..5fb9413 100644 --- a/src/Blog/Blog.csproj +++ b/src/Blog/Blog.csproj @@ -1,16 +1,16 @@ - net8.0 + net9.0 enable enable 16b1dba7-29d0-466e-bd34-16d8018898eb - - - + + + diff --git a/src/Blog/Dockerfile b/src/Blog/Dockerfile index b258056..5ca056d 100644 --- a/src/Blog/Dockerfile +++ b/src/Blog/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS setup-stage +FROM mcr.microsoft.com/dotnet/sdk:9.0 AS setup-stage WORKDIR /app COPY *.csproj ./ RUN dotnet restore @@ -13,7 +13,7 @@ CMD ["dotnet", "watch"] FROM setup-stage as build-stage RUN dotnet publish -c Release -o dist -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS production-stage +FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS production-stage WORKDIR /app COPY --from=build-stage /app/dist ./ -ENTRYPOINT ["dotnet", "Blog.dll"] \ No newline at end of file +ENTRYPOINT ["dotnet", "Blog.dll"] diff --git a/test/Blog.Tests/Blog.Tests.csproj b/test/Blog.Tests/Blog.Tests.csproj index 0a0f63b..1c37bed 100644 --- a/test/Blog.Tests/Blog.Tests.csproj +++ b/test/Blog.Tests/Blog.Tests.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 enable enable @@ -10,20 +10,20 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all - - - - + + + + - + - - + +