Revert "A bit of code styling in the Compile workflow"

This reverts commit 7b01ebbad0.
This commit is contained in:
Benedek Farkas 2024-11-29 17:38:01 +01:00
parent 8309d086ae
commit 871639c9ec

View File

@ -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