Module: WindowsRegistry #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PowerAutomate.Desktop.Modules-PR | |
on: | |
pull_request: | |
branches: | |
- main | |
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: Install Power Automate for desktop | |
if: ${{ success() }} | |
run: | | |
Invoke-WebRequest -Uri https://go.microsoft.com/fwlink/?linkid=2164365 -OutFile PADSetup.exe | |
.\PADSetup.exe -Install -AcceptEULA -Silent | |
Start-Sleep -Seconds 10 | |
$processName = "PADSetup" | |
do { | |
Write-Host "Waiting for process to exit..." | |
Start-Sleep -Seconds 10 | |
} while (Get-Process -Name $processName -ErrorAction SilentlyContinue) | |
- name: Setup MSBuild | |
if: ${{ success() }} | |
uses: microsoft/[email protected] | |
- name: Restore solution | |
if: ${{ success() }} | |
run: msbuild src\PowerAutomate.Desktop.Modules.sln -target:restore -property:Configuration=${{ env.CONFIGURATION }} -property:Environment=${{ env.ENVIRONMENT }} | |
- name: Build solution filter | |
if: ${{ success() }} | |
run: msbuild src\build.slnf -target:rebuild -property:Configuration=${{ env.CONFIGURATION }} -property:Environment=${{ env.ENVIRONMENT }} | |
- name: Run unit tests | |
if: ${{ success() }} | |
run: dotnet test src\build.slnf |