From 871639c9ec36c794897af88c3ea305ce52a2bb6a Mon Sep 17 00:00:00 2001 From: Benedek Farkas Date: Fri, 29 Nov 2024 17:38:01 +0100 Subject: [PATCH] Revert "A bit of code styling in the Compile workflow" This reverts commit 7b01ebbad0422d402362b1d08a74b1240a19daa4. --- .github/workflows/compile.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 24c884f08..eb46871be 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -32,17 +32,15 @@ jobs: run: msbuild Orchard.proj /m /v:minimal /t:Test - name: Run Orchard setup - working-directory: ./src/Orchard.Web/bin run: | - $commandFile = 'setup-commands.txt' + $commandFile = 'src/Orchard.Web/bin/setup-commands.txt' New-Item -Path $commandFile -ItemType File -Force Set-Content -Path $commandFile -Value 'setup /SiteName:Orchard /AdminUsername:admin /AdminPassword:Password1! /DatabaseProvider:SqlCe /Recipe:Default' - & Orchard.exe @$commandFile + & 'src/Orchard.Web/bin/Orchard.exe' @$commandFile - name: Run code generation - working-directory: ./src/Orchard.Web/bin run: | - $commandFile = 'codegen-commands.txt' + $commandFile = 'src/Orchard.Web/bin/codegen-commands.txt' New-Item -Path $commandFile -ItemType File -Force Set-Content -Path $commandFile -Value @' feature enable Orchard.CodeGeneration @@ -50,7 +48,7 @@ jobs: codegen theme Orchard.CodeGeneration.TestTheme /CreateProject:true codegen moduletests Orchard.CodeGeneration.TestModule '@ - & Orchard.exe @$commandFile + & 'src/Orchard.Web/bin/Orchard.exe' @$commandFile - name: Compile with generated projects run: msbuild Orchard.proj /m /v:minimal /t:Compile /p:TreatWarningsAsErrors=true -WarnAsError /NoWarn:CS2008