Skip to content

8773: Merge 1.10.x into dev #148

8773: Merge 1.10.x into dev

8773: Merge 1.10.x into dev #148

Workflow file for this run

name: Compile
# Compiles the solution and runs unit tests.
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/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Restore NuGet packages
run: nuget restore src/Orchard.sln
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2.0.0
- name: Compile
run: msbuild Orchard.proj /m /v:minimal /t:Compile /p:MvcBuildViews=true /p:TreatWarningsAsErrors=true -WarnAsError /bl:MSBuild.binlog
- name: Upload MSBuild log
if: success() || failure()
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: MSBuild.binlog
path: MSBuild.binlog
if-no-files-found: ignore
- name: Test
run: msbuild Orchard.proj /m /v:minimal /t:Test