From 711e827258dd4ed4c00d1572d43ce397ed73e06a Mon Sep 17 00:00:00 2001 From: Benedek Farkas Date: Wed, 28 Jun 2023 14:27:28 +0200 Subject: [PATCH] Updating the compile workflow to run the build + tests on PR, dev and 1.10.x commits --- .github/workflows/compile.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 0f9925170..8b4518b86 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -2,6 +2,11 @@ name: Compile on: workflow_dispatch: + pull_request: + push: + branches: + - dev + - 1.10.x jobs: compile: @@ -22,19 +27,7 @@ jobs: uses: microsoft/setup-msbuild@v1.3.1 - name: Compile - run: msbuild Orchard.proj /m /t:Compile /p:MvcBuildViews=true /p:TreatWarningsAsErrors=true -WarnAsError /bl:Orchard.binlog - - - name: Upload MSBuild Binary Log - uses: actions/upload-artifact@v3.1.1 - if: success() || failure() - with: - name: Orchard-${{ github.sha }}-${{ github.run_number }}.binlog - path: Orchard.binlog - if-no-files-found: ignore + run: msbuild Orchard.proj /m /t:Compile /p:MvcBuildViews=true /p:TreatWarningsAsErrors=true -WarnAsError - name: Test run: msbuild Orchard.proj /m /t:Test - - - name: Spec - if: false - run: msbuild Orchard.proj /m /t:Spec