mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-16 02:56:31 +08:00
Updating the compile workflow to run the build + tests on PR, dev and 1.10.x commits
This commit is contained in:
parent
dd512b4ae6
commit
711e827258
19
.github/workflows/compile.yml
vendored
19
.github/workflows/compile.yml
vendored
@ -2,6 +2,11 @@ name: Compile
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
- 1.10.x
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
compile:
|
compile:
|
||||||
@ -22,19 +27,7 @@ jobs:
|
|||||||
uses: microsoft/setup-msbuild@v1.3.1
|
uses: microsoft/setup-msbuild@v1.3.1
|
||||||
|
|
||||||
- name: Compile
|
- name: Compile
|
||||||
run: msbuild Orchard.proj /m /t:Compile /p:MvcBuildViews=true /p:TreatWarningsAsErrors=true -WarnAsError /bl:Orchard.binlog
|
run: msbuild Orchard.proj /m /t:Compile /p:MvcBuildViews=true /p:TreatWarningsAsErrors=true -WarnAsError
|
||||||
|
|
||||||
- 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
|
- name: Test
|
||||||
run: msbuild Orchard.proj /m /t:Test
|
run: msbuild Orchard.proj /m /t:Test
|
||||||
|
|
||||||
- name: Spec
|
|
||||||
if: false
|
|
||||||
run: msbuild Orchard.proj /m /t:Spec
|
|
||||||
|
Loading…
Reference in New Issue
Block a user