mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Using Title Casing in the Compile workflow's step names
This commit is contained in:
parent
ebae790f15
commit
c4c0af7a66
20
.github/workflows/compile.yml
vendored
20
.github/workflows/compile.yml
vendored
@ -16,13 +16,13 @@ jobs:
|
|||||||
shell: pwsh
|
shell: pwsh
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone Repository
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
|
||||||
- name: Restore NuGet packages
|
- name: Restore NuGet Packages
|
||||||
run: nuget restore src/Orchard.sln
|
run: nuget restore src/Orchard.sln
|
||||||
|
|
||||||
- name: Add msbuild to PATH
|
- name: Add MSBuild to PATH
|
||||||
uses: microsoft/setup-msbuild@v2
|
uses: microsoft/setup-msbuild@v2
|
||||||
|
|
||||||
- name: Compile
|
- name: Compile
|
||||||
@ -31,14 +31,14 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
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 with Orchard.exe
|
||||||
run: |
|
run: |
|
||||||
$commandFile = 'src/Orchard.Web/bin/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'
|
||||||
& 'src/Orchard.Web/bin/Orchard.exe' @$commandFile
|
& 'src/Orchard.Web/bin/Orchard.exe' @$commandFile
|
||||||
|
|
||||||
- name: Run code generation
|
- name: Run Code Generation
|
||||||
run: |
|
run: |
|
||||||
$commandFile = 'src/Orchard.Web/bin/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
|
||||||
@ -50,17 +50,17 @@ jobs:
|
|||||||
'@
|
'@
|
||||||
& 'src/Orchard.Web/bin/Orchard.exe' @$commandFile
|
& '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
|
run: msbuild Orchard.proj /m /v:minimal /t:Compile /p:TreatWarningsAsErrors=true -WarnAsError /NoWarn:CS2008
|
||||||
|
|
||||||
compile-node:
|
compile-node:
|
||||||
name: Compile client-side assets
|
name: Compile Client-side Assets
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Clone repository
|
- name: Clone Repository
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
|
|
||||||
- name: Setup NodeJS
|
- name: Setup NodeJS
|
||||||
@ -68,7 +68,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '7'
|
node-version: '7'
|
||||||
|
|
||||||
- name: Setup NPM packages
|
- name: Setup NPM Packages
|
||||||
working-directory: ./src
|
working-directory: ./src
|
||||||
run: |
|
run: |
|
||||||
npm install --loglevel warn
|
npm install --loglevel warn
|
||||||
@ -77,7 +77,7 @@ jobs:
|
|||||||
$gulpVersion = (Get-Content Package.json -Raw | ConvertFrom-Json).devDependencies.gulp
|
$gulpVersion = (Get-Content Package.json -Raw | ConvertFrom-Json).devDependencies.gulp
|
||||||
Start-Process npm -NoNewWindow -Wait -ArgumentList "install gulp@$gulpVersion -g --loglevel warn"
|
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
|
working-directory: ./src
|
||||||
run: |
|
run: |
|
||||||
gulp rebuild
|
gulp rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user