From b80d2a7379b15e0aa505bc1ce63539fab67cf3af Mon Sep 17 00:00:00 2001 From: chloe Date: Wed, 18 Mar 2026 06:43:10 +0000 Subject: [PATCH] updated dockerfile to include running tests --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 38eba8b..3845634 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ WORKDIR /src/frontend COPY Seasoned.Frontend/package*.json ./ RUN npm install COPY Seasoned.Frontend/ . +RUN npm run test RUN npx nuxi generate # Stage 2: Build the .NET 9 backend (Debian Slim) @@ -13,6 +14,7 @@ COPY Seasoned.Backend/*.csproj ./Seasoned.Backend/ RUN dotnet restore ./Seasoned.Backend/Seasoned.Backend.csproj COPY . . +RUN dotnet test ./Seasoned.Tests/Seasoned.Tests.csproj --configuration Release --no-restore # Copy Nuxt static files into .NET wwwroot COPY --from=frontend-build /src/frontend/.output/public ./Seasoned.Backend/wwwroot