mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-08 00:14:31 +08:00
Testing windows-2025 runners on 1.10.x (#8843)
* Testing compile workflow on windows-2025 runners * Wording [skip ci] * Compile workflow: Switch shell to cmd where pwsh is not needed
This commit is contained in:
17
.github/workflows/compile.yml
vendored
17
.github/workflows/compile.yml
vendored
@@ -13,8 +13,8 @@ jobs:
|
|||||||
name: Compile .NET solution
|
name: Compile .NET solution
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: pwsh
|
shell: cmd
|
||||||
runs-on: windows-latest
|
runs-on: windows-2025
|
||||||
steps:
|
steps:
|
||||||
- name: Clone Repository
|
- name: Clone Repository
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
@@ -32,11 +32,13 @@ jobs:
|
|||||||
run: msbuild Orchard.proj /m /v:minimal /t:Test
|
run: msbuild Orchard.proj /m /v:minimal /t:Test
|
||||||
|
|
||||||
- name: Test Setup with SpecFlow
|
- name: Test Setup with SpecFlow
|
||||||
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
$nunitConsole = (Get-ChildItem -Path 'src/packages' -Recurse -Filter 'nunit-console.exe' | Select-Object -Last 1).FullName
|
$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
|
& $nunitConsole 'build/Compile/Orchard.Specs.dll' /xml='build/Orchard.Specs.xml' /run=Orchard.Specs.SetupFeature.RootAndSetupFolderShowsSetupScreenAndFormValuesAreValidated
|
||||||
|
|
||||||
- name: Run Orchard Setup with Orchard.exe
|
- name: Run Orchard Setup with Orchard.exe
|
||||||
|
shell: pwsh
|
||||||
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
|
||||||
@@ -44,6 +46,7 @@ jobs:
|
|||||||
& 'src/Orchard.Web/bin/Orchard.exe' @$commandFile
|
& 'src/Orchard.Web/bin/Orchard.exe' @$commandFile
|
||||||
|
|
||||||
- name: Run Code Generation
|
- name: Run Code Generation
|
||||||
|
shell: pwsh
|
||||||
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
|
||||||
@@ -62,8 +65,8 @@ jobs:
|
|||||||
name: Compile Client-side Assets
|
name: Compile Client-side Assets
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: pwsh
|
shell: cmd
|
||||||
runs-on: windows-latest
|
runs-on: windows-2025
|
||||||
steps:
|
steps:
|
||||||
- name: Clone Repository
|
- name: Clone Repository
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
@@ -75,23 +78,23 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Gulp Globally
|
- name: Install Gulp Globally
|
||||||
working-directory: ./src
|
working-directory: ./src
|
||||||
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
# Install gulp globally to be able to run the rebuild task, using the same version as in the project.
|
# Install gulp globally to be able to run the rebuild task, using the same version as in the project.
|
||||||
$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: Setup NPM Packages
|
- name: Install NPM Packages
|
||||||
working-directory: ./src
|
working-directory: ./src
|
||||||
shell: cmd
|
|
||||||
run: npm install --loglevel warn
|
run: npm install --loglevel warn
|
||||||
|
|
||||||
- name: Rebuild Client-side Assets
|
- name: Rebuild Client-side Assets
|
||||||
working-directory: ./src
|
working-directory: ./src
|
||||||
shell: cmd
|
|
||||||
run: gulp rebuild
|
run: gulp rebuild
|
||||||
|
|
||||||
- name: Check Client-side Assets
|
- name: Check Client-side Assets
|
||||||
working-directory: ./src
|
working-directory: ./src
|
||||||
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
git add . # To make line ending changes "disappear".
|
git add . # To make line ending changes "disappear".
|
||||||
$gitStatus = (git status --porcelain)
|
$gitStatus = (git status --porcelain)
|
||||||
|
Reference in New Issue
Block a user