From 01ba3cabbc12e893053f2301df52ae70f35a1c03 Mon Sep 17 00:00:00 2001 From: Benedek Farkas Date: Wed, 12 Jul 2023 16:41:14 +0200 Subject: [PATCH] Grabbing the contents of the compile workflow from 1.10.x --- .github/workflows/compile.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 5e685c9b3..8b4518b86 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -2,15 +2,32 @@ name: Compile on: workflow_dispatch: + pull_request: + push: + branches: + - dev + - 1.10.x jobs: compile: name: Compile defaults: run: - shell: cmd + shell: pwsh runs-on: windows-latest steps: + - name: Clone repository + uses: actions/checkout@v3.1.0 + + - name: Restore NuGet packages + run: nuget restore src/Orchard.sln + + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1.3.1 + + - name: Compile + run: msbuild Orchard.proj /m /t:Compile /p:MvcBuildViews=true /p:TreatWarningsAsErrors=true -WarnAsError + - name: Test - run: echo Test + run: msbuild Orchard.proj /m /t:Test