-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
210 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: PowerAutomate.Desktop.Modules-CI | ||
|
||
on: | ||
push: | ||
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/setup-msbuild@v1.3.1 | ||
|
||
- 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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: PowerAutomate.Desktop.Modules-Nightly | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
env: | ||
REPOSITORY_URL: "jfevia/PowerAutomate.Desktop.Modules" | ||
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/setup-msbuild@v1.3.1 | ||
|
||
- 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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
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/setup-msbuild@v1.3.1 | ||
|
||
- 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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -395,4 +395,5 @@ FodyWeavers.xsd | |
*.msp | ||
|
||
# JetBrains Rider | ||
*.sln.iml | ||
.idea/ | ||
*.sln.iml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<ProductName>PowerAutomate.Desktop.Modules</ProductName> | ||
<RootNamespace>$(ProductName).$(MSBuildProjectName)</RootNamespace> | ||
<AssemblyName>$(ProductName).$(MSBuildProjectName)</AssemblyName> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<Environment Condition=" '$(Environment)' == '' ">Development</Environment> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" '$(Environment)' != '' "> | ||
<DefineConstants>$(DefineConstants);ENVIRONMENT_$(Environment.ToUpper())</DefineConstants> | ||
</PropertyGroup> | ||
|
||
</Project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
<CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageVersion Include="Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK" Version="1.4.233.23144-rc" /> | ||
</ItemGroup> | ||
</Project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# power-automate-desktop-custom-modules | ||
# PowerAutomate.Desktop.Modules |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<clear /> | ||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> | ||
</packageSources> | ||
<packageSourceMapping> | ||
<packageSource key="nuget.org"> | ||
<package pattern="*" /> | ||
</packageSource> | ||
</packageSourceMapping> | ||
</configuration> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
EndGlobal |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"solution": { | ||
"path": "PowerAutomate.Desktop.Modules.sln", | ||
"projects": [] | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Project> | ||
|
||
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)..\'))" /> | ||
|
||
<PropertyGroup> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<OutputPath>bin\$(Configuration)</OutputPath> | ||
</PropertyGroup> | ||
|
||
</Project> |