Updating the compile workflow to run the build + tests on PR, dev and 1.10.x commits

This commit is contained in:
Benedek Farkas 2023-06-28 14:27:28 +02:00
parent dd512b4ae6
commit 711e827258

View File

@ -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