From 9c90dfb83094d0e693d8c09d3cc3608695e62a6d Mon Sep 17 00:00:00 2001 From: Benedek Farkas Date: Wed, 28 Jun 2023 14:34:00 +0200 Subject: [PATCH] Revert "Updating the compile workflow to run the build + tests on PR, dev and 1.10.x commits" This reverts commit 711e827258dd4ed4c00d1572d43ce397ed73e06a. --- .github/workflows/compile.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 8b4518b86..0f9925170 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -2,11 +2,6 @@ name: Compile on: workflow_dispatch: - pull_request: - push: - branches: - - dev - - 1.10.x jobs: compile: @@ -27,7 +22,19 @@ jobs: uses: microsoft/setup-msbuild@v1.3.1 - name: Compile - run: msbuild Orchard.proj /m /t:Compile /p:MvcBuildViews=true /p:TreatWarningsAsErrors=true -WarnAsError + 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 - name: Test run: msbuild Orchard.proj /m /t:Test + + - name: Spec + if: false + run: msbuild Orchard.proj /m /t:Spec