diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml
index eb46871bea7..9ba1a9c85b8 100644
--- a/.github/workflows/compile.yml
+++ b/.github/workflows/compile.yml
@@ -16,13 +16,13 @@ jobs:
shell: pwsh
runs-on: windows-latest
steps:
- - name: Clone repository
+ - name: Clone Repository
uses: actions/checkout@v4.1.1
- - name: Restore NuGet packages
+ - name: Restore NuGet Packages
run: nuget restore src/Orchard.sln
- - name: Add msbuild to PATH
+ - name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Compile
@@ -31,14 +31,19 @@ jobs:
- name: Test
run: msbuild Orchard.proj /m /v:minimal /t:Test
- - name: Run Orchard setup
+ - name: Test Setup with SpecFlow
+ run: |
+ $nunitConsole = (Get-ChildItem -Path 'src/packages' -Recurse -Filter 'nunit-console.exe' | Select-Object -Last 1).FullName
+ & $nunitConsole 'build/Compile/Orchard.Specs.dll' /xml='build/Orchard.Specs.xml' /run=Orchard.Specs.SetupFeature.RootAndSetupFolderShowsSetupScreenAndFormValuesAreValidated
+
+ - name: Run Orchard Setup with Orchard.exe
run: |
$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'
& 'src/Orchard.Web/bin/Orchard.exe' @$commandFile
- - name: Run code generation
+ - name: Run Code Generation
run: |
$commandFile = 'src/Orchard.Web/bin/codegen-commands.txt'
New-Item -Path $commandFile -ItemType File -Force
@@ -50,17 +55,17 @@ jobs:
'@
& 'src/Orchard.Web/bin/Orchard.exe' @$commandFile
- - name: Compile with generated projects
+ - name: Compile Again with Generated Projects
run: msbuild Orchard.proj /m /v:minimal /t:Compile /p:TreatWarningsAsErrors=true -WarnAsError /NoWarn:CS2008
compile-node:
- name: Compile client-side assets
+ name: Compile Client-side Assets
defaults:
run:
shell: pwsh
runs-on: windows-latest
steps:
- - name: Clone repository
+ - name: Clone Repository
uses: actions/checkout@v4.1.1
- name: Setup NodeJS
@@ -68,7 +73,7 @@ jobs:
with:
node-version: '7'
- - name: Setup NPM packages
+ - name: Setup NPM Packages
working-directory: ./src
run: |
npm install --loglevel warn
@@ -77,7 +82,7 @@ jobs:
$gulpVersion = (Get-Content Package.json -Raw | ConvertFrom-Json).devDependencies.gulp
Start-Process npm -NoNewWindow -Wait -ArgumentList "install gulp@$gulpVersion -g --loglevel warn"
- - name: Rebuild client-side assets
+ - name: Rebuild Client-side Assets
working-directory: ./src
run: |
gulp rebuild
diff --git a/src/Orchard.Specs/Hosting/Orchard.Web/Web.config b/src/Orchard.Specs/Hosting/Orchard.Web/Web.config
index 593d2ac20f5..0c84ea8c46e 100644
--- a/src/Orchard.Specs/Hosting/Orchard.Web/Web.config
+++ b/src/Orchard.Specs/Hosting/Orchard.Web/Web.config
@@ -151,7 +151,7 @@
-
+