mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-06-28 07:12:46 +08:00
Revert "A bit of code styling in the Compile workflow"
This reverts commit 7b01ebbad0
.
This commit is contained in:
parent
8309d086ae
commit
871639c9ec
10
.github/workflows/compile.yml
vendored
10
.github/workflows/compile.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user