mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-06-28 15:34:39 +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
|
run: msbuild Orchard.proj /m /v:minimal /t:Test
|
||||||
|
|
||||||
- name: Run Orchard setup
|
- name: Run Orchard setup
|
||||||
working-directory: ./src/Orchard.Web/bin
|
|
||||||
run: |
|
run: |
|
||||||
$commandFile = 'setup-commands.txt'
|
$commandFile = 'src/Orchard.Web/bin/setup-commands.txt'
|
||||||
New-Item -Path $commandFile -ItemType File -Force
|
New-Item -Path $commandFile -ItemType File -Force
|
||||||
Set-Content -Path $commandFile -Value 'setup /SiteName:Orchard /AdminUsername:admin /AdminPassword:Password1! /DatabaseProvider:SqlCe /Recipe:Default'
|
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
|
- name: Run code generation
|
||||||
working-directory: ./src/Orchard.Web/bin
|
|
||||||
run: |
|
run: |
|
||||||
$commandFile = 'codegen-commands.txt'
|
$commandFile = 'src/Orchard.Web/bin/codegen-commands.txt'
|
||||||
New-Item -Path $commandFile -ItemType File -Force
|
New-Item -Path $commandFile -ItemType File -Force
|
||||||
Set-Content -Path $commandFile -Value @'
|
Set-Content -Path $commandFile -Value @'
|
||||||
feature enable Orchard.CodeGeneration
|
feature enable Orchard.CodeGeneration
|
||||||
@ -50,7 +48,7 @@ jobs:
|
|||||||
codegen theme Orchard.CodeGeneration.TestTheme /CreateProject:true
|
codegen theme Orchard.CodeGeneration.TestTheme /CreateProject:true
|
||||||
codegen moduletests Orchard.CodeGeneration.TestModule
|
codegen moduletests Orchard.CodeGeneration.TestModule
|
||||||
'@
|
'@
|
||||||
& Orchard.exe @$commandFile
|
& 'src/Orchard.Web/bin/Orchard.exe' @$commandFile
|
||||||
|
|
||||||
- name: Compile with generated projects
|
- name: Compile with generated projects
|
||||||
run: msbuild Orchard.proj /m /v:minimal /t:Compile /p:TreatWarningsAsErrors=true -WarnAsError /NoWarn:CS2008
|
run: msbuild Orchard.proj /m /v:minimal /t:Compile /p:TreatWarningsAsErrors=true -WarnAsError /NoWarn:CS2008
|
||||||
|
Loading…
Reference in New Issue
Block a user