Skip to content

Commit a264306

Browse files
Merge branch 'main' into agents/tunit-aspnetcore-integration-tests
2 parents 148b516 + 1e7265c commit a264306

10 files changed

Lines changed: 231 additions & 200 deletions

File tree

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"dotnet-ef": {
6-
"version": "10.0.7",
6+
"version": "10.0.8",
77
"commands": [
88
"dotnet-ef"
99
],

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ updates:
2626
patterns:
2727
- "ContentFeedNuget"
2828
- "EssentialCSharp.Shared.Models"
29+
ef-core:
30+
applies-to: version-updates
31+
patterns:
32+
- "Microsoft.EntityFrameworkCore*"
33+
- "dotnet-ef"
2934

3035
- package-ecosystem: "github-actions" # See documentation for possible values
3136
directory: "/" # Location of package manifests

.github/workflows/Build-Test-And-Deploy.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,6 @@ jobs:
6363
- name: Set up Docker Buildx
6464
uses: docker/setup-buildx-action@v4
6565

66-
# Build but no push with a PR
67-
- name: Docker build (no push)
68-
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
69-
uses: docker/build-push-action@v7
70-
with:
71-
push: false
72-
tags: temp-pr-validation
73-
file: ./EssentialCSharp.Web/Dockerfile
74-
context: .
75-
build-args: ACCESS_TO_NUGET_FEED=false
76-
7766
# Only build for dev registry — prod gets the image via az acr import in deploy-production
7867
- name: Build Container Image
7968
if: github.event_name != 'pull_request_target' && github.event_name != 'pull_request'
@@ -189,7 +178,6 @@ jobs:
189178
az acr import \
190179
--name "${PROD_ACR%.azurecr.io}" \
191180
--source "${DEV_ACR}/essentialcsharpweb:${{ github.sha }}" \
192-
--registry "${DEV_ACR%.azurecr.io}" \
193181
--image "essentialcsharpweb:${{ github.sha }}" \
194182
--image "essentialcsharpweb:latest" \
195183
--force

.github/workflows/PR-Build-And-Test.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,30 @@ name: PR Build and Test EssentialCSharp.Web
33
on:
44
pull_request:
55
branches: ["main"]
6+
merge_group:
67
workflow_dispatch:
78

89
jobs:
10+
frontend-build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v6
17+
with:
18+
node-version: '26'
19+
cache: npm
20+
cache-dependency-path: EssentialCSharp.Web/package-lock.json
21+
22+
- name: Install npm dependencies
23+
working-directory: EssentialCSharp.Web
24+
run: npm ci
25+
26+
- name: Build frontend
27+
working-directory: EssentialCSharp.Web
28+
run: npm run build
29+
930
build-and-test:
1031
runs-on: ubuntu-latest
1132
steps:
@@ -67,7 +88,7 @@ jobs:
6788
with:
6889
file: ./EssentialCSharp.Web/Dockerfile
6990
context: .
70-
outputs: type=docker,dest=${{ github.workspace }}/essentialcsharpwebimage.tar
91+
push: false
7192
cache-from: type=gha
7293
cache-to: type=gha,mode=max
7394
build-args: ACCESS_TO_NUGET_FEED=false

Directory.Packages.props

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
44
<CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled>
5-
<ToolingPackagesVersion>1.1.1.19025</ToolingPackagesVersion>
5+
<ToolingPackagesVersion>1.1.1.19044</ToolingPackagesVersion>
66
<AccessToNugetFeed Condition="'$(AccessToNugetFeed)' == ''">false</AccessToNugetFeed>
77
<!-- Disable NuGet vulnerability audit when the private feed is unavailable (e.g. CI without credentials).
88
NuGet audit queries all sources in nuget.config regardless of RestoreSources, causing NU1900 which is
@@ -26,18 +26,18 @@
2626
<PackageVersion Include="TUnit.AspNetCore" Version="1.40.5" />
2727
<PackageVersion Include="EssentialCSharp.Shared.Models" Version="$(ToolingPackagesVersion)" />
2828
<PackageVersion Include="HtmlAgilityPack" Version="1.12.4" />
29-
<PackageVersion Include="IntelliTect.Multitool" Version="2.0.0" />
29+
<PackageVersion Include="IntelliTect.Multitool" Version="2.1.0" />
3030
<PackageVersion Include="Mailjet.Api" Version="4.0.0" />
31-
<PackageVersion Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" Version="10.0.7" />
31+
<PackageVersion Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" Version="10.0.8" />
3232
<PackageVersion Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="10.0.7" />
3333
<PackageVersion Include="Microsoft.AspNetCore.Identity.UI" Version="10.0.7" />
3434
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="10.0.7" />
3535
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.7" />
3636
<PackageVersion Include="Microsoft.CodeAnalysis.Common" Version="5.0.0" />
3737
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" />
38-
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.7" />
39-
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.7" />
40-
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="10.0.7" />
38+
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.8" />
39+
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.8" />
40+
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="10.0.8" />
4141
<PackageVersion Include="Microsoft.Extensions.Http.Resilience" Version="10.5.0" />
4242
<PackageVersion Include="Microsoft.SemanticKernel" Version="$(SemanticKernelVersion)" />
4343
<PackageVersion Include="Microsoft.SemanticKernel.Connectors.PgVector" Version="$(SemanticKernelVersion)-preview" />
@@ -50,7 +50,7 @@
5050
<PackageVersion Include="Microsoft.Extensions.AI.OpenAI" Version="10.0.1-preview.1.25571.5" />
5151
<PackageVersion Include="ModelContextProtocol" Version="1.2.0" />
5252
<PackageVersion Include="ModelContextProtocol.AspNetCore" Version="1.2.0" />
53-
<PackageVersion Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.7" />
53+
<PackageVersion Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.8" />
5454
<PackageVersion Include="Moq" Version="4.20.72" />
5555
<PackageVersion Include="Moq.AutoMock" Version="4.0.2" />
5656
<PackageVersion Include="System.CommandLine" Version="2.0.7" />

EssentialCSharp.Web/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ WORKDIR /app
55
EXPOSE 8080
66
EXPOSE 8081
77

8-
FROM node:24-bookworm-slim AS frontend-build
8+
FROM node:26-bookworm-slim AS frontend-build
99
WORKDIR /frontend/EssentialCSharp.Web
1010
COPY EssentialCSharp.Web/package.json EssentialCSharp.Web/package-lock.json ./
1111
RUN npm ci
1212
COPY EssentialCSharp.Web/ ./
1313
RUN npm run build
1414

15-
FROM mcr.microsoft.com/dotnet/sdk:10.0.203 AS build
15+
FROM mcr.microsoft.com/dotnet/sdk:10.0.300 AS build
1616
ARG ACCESS_TO_NUGET_FEED=true
1717
ENV ACCESS_TO_NUGET_FEED=$ACCESS_TO_NUGET_FEED
1818
WORKDIR /src

0 commit comments

Comments
 (0)