-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from theyo/feature/github-action
Creates build.yml
- Loading branch information
Showing
6 changed files
with
80 additions
and
30 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,34 @@ | ||
# This workflow will build a .NET project | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | ||
|
||
name: .NET | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
- name: Build Worker | ||
run: dotnet build AuraScheduler.Worker/AuraScheduler.Worker.csproj --configuration Release --no-restore | ||
- name: Build UI | ||
run: dotnet build AuraScheduler.UI/AuraScheduler.UI.csproj --configuration Release --no-restore | ||
- name: Build Test Project | ||
run: dotnet build AuraScheduler.Worker.Tests/AuraScheduler.Worker.Tests.csproj --configuration Release --no-restore | ||
- name: Test | ||
run: dotnet test --configuration Release | ||
- name: Build Setup project | ||
run: dotnet build Setup/Setup.wixproj --configuration Release --no-restore |
43 changes: 22 additions & 21 deletions
43
AuraScheduler.Worker.Tests/AuraScheduler.Worker.Tests.csproj
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,27 +1,28 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<PropertyGroup> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
|
||
<IsPackable>false</IsPackable> | ||
<IsTestProject>true</IsTestProject> | ||
<Platforms>AnyCPU;x64</Platforms> | ||
</PropertyGroup> | ||
<IsPackable>false</IsPackable> | ||
<IsTestProject>true</IsTestProject> | ||
<PlatformTarget>x64</PlatformTarget> | ||
<Platforms>x64</Platforms> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" /> | ||
<PackageReference Include="MSTest.TestAdapter" Version="3.0.2" /> | ||
<PackageReference Include="MSTest.TestFramework" Version="3.0.2" /> | ||
<PackageReference Include="coverlet.collector" Version="3.2.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" /> | ||
<PackageReference Include="MSTest.TestAdapter" Version="3.0.2" /> | ||
<PackageReference Include="MSTest.TestFramework" Version="3.0.2" /> | ||
<PackageReference Include="coverlet.collector" Version="3.2.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\AuraScheduler.Worker\AuraScheduler.Worker.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\AuraScheduler.Worker\AuraScheduler.Worker.csproj" /> | ||
</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
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
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
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,10 +1,11 @@ | ||
<Project Sdk="WixToolset.Sdk/4.0.0"> | ||
<PropertyGroup> | ||
<DefineConstants>Version=$(BuildVersion)</DefineConstants> | ||
<OutputName>AURAScheduler.$(MSBuildProjectName)</OutputName> | ||
<Platforms>x86;x64</Platforms> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\AuraScheduler.UI\AuraScheduler.UI.csproj" publish="true" /> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<DefineConstants>Version=$(BuildVersion)</DefineConstants> | ||
<OutputName>AURAScheduler.$(MSBuildProjectName)</OutputName> | ||
<Platforms>x64</Platforms> | ||
<Platform Condition="'$(Platform)' == '' ">x64</Platform> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\AuraScheduler.UI\AuraScheduler.UI.csproj" publish="true" /> | ||
</ItemGroup> | ||
</Project> |