From 874be49d645e1d0e30331fe348ecfedbff5f9236 Mon Sep 17 00:00:00 2001 From: Hans Christian Winther-Sorensen Date: Fri, 3 May 2024 21:40:26 +0200 Subject: [PATCH] Fix backend issue after adding docker project --- .github/workflows/backend-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/backend-ci.yml b/.github/workflows/backend-ci.yml index 14f1b998..19ff469d 100644 --- a/.github/workflows/backend-ci.yml +++ b/.github/workflows/backend-ci.yml @@ -35,6 +35,7 @@ concurrency: env: DOTNET_VERSION: "8.0.x" BACKEND_SOLUTION_PATH: "src/backend" + BACKEND_SOLUTION_FILE: "Backend.sln" WORKFLOW_SHORT_NAME: "backend-ci" WORKFLOW_AGENT_PATH: "/home/runner/work/test/test/" @@ -63,7 +64,7 @@ jobs: key: nuget-${{ hashFiles('**/packages.lock.json') }} - name: dotnet restore - run: dotnet restore --locked-mode + run: dotnet restore --locked-mode ${{ env.BACKEND_SOLUTION_FILE }} - name: dotnet tool restore run: dotnet tool restore @@ -71,7 +72,7 @@ jobs: - name: Build id: dotnet-build run: | - dotnet build -c Release --no-restore --nologo -consoleLoggerParameters:NoSummary -verbosity:quiet 1>build.out 2>&1 || (exit 0) + dotnet build ${{ env.BACKEND_SOLUTION_FILE }} -c Release --no-restore --nologo -consoleLoggerParameters:NoSummary -verbosity:quiet 1>build.out 2>&1 || (exit 0) grep "): error " build.out > build.err || (exit 0) if [ ! -s build.err ]