mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-08 00:14:31 +08:00
Revert "Experimental compile workflow changes for better error detection"
This reverts commit 4e18292616
.
This commit is contained in:
15
.github/workflows/compile.yml
vendored
15
.github/workflows/compile.yml
vendored
@@ -1,4 +1,5 @@
|
|||||||
name: Compile
|
name: Compile
|
||||||
|
# Compiles the solution and runs unit tests.
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -11,7 +12,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
compile-dotnet:
|
compile-dotnet:
|
||||||
name: Compile .NET solution
|
name: Compile .NET solution
|
||||||
if: false
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
@@ -72,25 +72,22 @@ jobs:
|
|||||||
- name: Setup NodeJS
|
- name: Setup NodeJS
|
||||||
uses: actions/setup-node@v4.0.2
|
uses: actions/setup-node@v4.0.2
|
||||||
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
|
||||||
|
|
||||||
# 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"
|
||||||
|
|
||||||
npm install --loglevel warn
|
|
||||||
|
|
||||||
- name: Rebuild Client-side Assets
|
- name: Rebuild Client-side Assets
|
||||||
shell: cmd
|
|
||||||
working-directory: ./src
|
|
||||||
run: gulp rebuild
|
|
||||||
|
|
||||||
- name: Check Client-side Assets
|
|
||||||
working-directory: ./src
|
working-directory: ./src
|
||||||
run: |
|
run: |
|
||||||
|
gulp rebuild
|
||||||
|
|
||||||
git add . # To make line ending changes "disappear".
|
git add . # To make line ending changes "disappear".
|
||||||
$gitStatus = (git status --porcelain)
|
$gitStatus = (git status --porcelain)
|
||||||
if ($gitStatus)
|
if ($gitStatus)
|
||||||
|
Reference in New Issue
Block a user