-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 939 Bytes
/
nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: PowerAutomate.Desktop.Modules-Nightly
on:
schedule:
- cron: '0 0 * * *'
env:
CONFIGURATION: "Release"
ENVIRONMENT: "Production"
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
if: ${{ success() }}
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup MSBuild
if: ${{ success() }}
uses: microsoft/setup-msbuild@v1.3.1
- name: Restore solution
if: ${{ success() }}
run: msbuild PowerAutomate.Desktop.sln -target:restore -property:Configuration=${{ env.CONFIGURATION }} -property:Environment=${{ env.ENVIRONMENT }}
- name: Build solution
if: ${{ success() }}
run: msbuild PowerAutomate.Desktop.sln -target:rebuild -property:Configuration=${{ env.CONFIGURATION }} -property:Environment=${{ env.ENVIRONMENT }}
- name: Run unit tests
if: ${{ success() }}
run: dotnet test PowerAutomate.Desktop.sln