Skip to content

8773: Recompiling client-side assets on 1.10.x #171

8773: Recompiling client-side assets on 1.10.x

8773: Recompiling client-side assets on 1.10.x #171

Workflow file for this run

name: Compile
on:
workflow_dispatch:
pull_request:
push:
branches:
- dev
- 1.10.x
jobs:
compile:
name: Compile
defaults:
run:
shell: pwsh
runs-on: windows-latest
steps:
- name: Clone repository
uses: actions/[email protected]
- name: Setup NodeJS
uses: actions/[email protected]
with:
node-version: '7'
- name: Rebuild client-side assets
run: |
npm install
npm run rebuild
if (git status)
{
throw 'Client-side assets are not up-to-date. Please run "npm run rebuild" and commit the changes.'
}
# - name: Restore NuGet packages
# run: nuget restore src/Orchard.sln
# - name: Add msbuild to PATH
# uses: microsoft/setup-msbuild@v2
# - name: Compile
# run: msbuild Orchard.proj /m /v:minimal /t:Compile /p:MvcBuildViews=true /p:TreatWarningsAsErrors=true -WarnAsError
# - name: Test
# run: msbuild Orchard.proj /m /v:minimal /t:Test