-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…#8820) * Using Title Casing in the Compile workflow's step names * Adding step to run the Setup with SpecFlow * Fixing typo * Fixing that upgrading Newtonsoft.Json to 13.x broke the SpecFlow test execution app
- Loading branch information
1 parent
ebae790
commit c3b98ba
Showing
2 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,13 +16,13 @@ jobs: | |
shell: pwsh | ||
runs-on: windows-latest | ||
steps: | ||
- name: Clone repository | ||
- name: Clone Repository | ||
uses: actions/[email protected] | ||
|
||
- 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,25 +55,25 @@ 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/[email protected] | ||
|
||
- name: Setup NodeJS | ||
uses: actions/[email protected] | ||
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters