Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,46 @@ on:
type: string

jobs:
test:
name: Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:

- uses: actions/checkout@v6

- name: Setup dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.x
9.x
10.x

- name: Build
run: >
dotnet build
--configuration Release
--property:Version=${{ inputs.semver }}
--property:InformationalVersion=${{ inputs.semver }}
--property:AssemblyVersion=${{ inputs.winver }}

- name: Test
run: >
dotnet test
--configuration Release
--no-build

build:
name: Build Artifacts
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
steps:

- uses: actions/checkout@v6
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.vs
*.bak
node_modules
bin/
obj/
TestResults/
drop/
6 changes: 6 additions & 0 deletions DemaConsulting.DotnetToolWrapper.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ VisualStudioVersion = 17.9.34622.214
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DemaConsulting.DotnetToolWrapper", "src\DemaConsulting.DotnetToolWrapper\DemaConsulting.DotnetToolWrapper.csproj", "{9381FBF3-DCAE-4D2E-9F20-341FDDD38537}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DemaConsulting.DotnetToolWrapper.Tests", "test\DemaConsulting.DotnetToolWrapper.Tests\DemaConsulting.DotnetToolWrapper.Tests.csproj", "{8E5F3A42-1D5B-4C9E-8F1D-2C3F4D5E6F7A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -15,6 +17,10 @@ Global
{9381FBF3-DCAE-4D2E-9F20-341FDDD38537}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9381FBF3-DCAE-4D2E-9F20-341FDDD38537}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9381FBF3-DCAE-4D2E-9F20-341FDDD38537}.Release|Any CPU.Build.0 = Release|Any CPU
{8E5F3A42-1D5B-4C9E-8F1D-2C3F4D5E6F7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8E5F3A42-1D5B-4C9E-8F1D-2C3F4D5E6F7A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8E5F3A42-1D5B-4C9E-8F1D-2C3F4D5E6F7A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8E5F3A42-1D5B-4C9E-8F1D-2C3F4D5E6F7A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
<LangVersion>12</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.7.0" />
<PackageReference Include="MSTest.TestFramework" Version="3.7.0" />
<PackageReference Include="SonarAnalyzer.CSharp" Version="10.4.0.108396">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\DemaConsulting.DotnetToolWrapper\DemaConsulting.DotnetToolWrapper.csproj">
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</ProjectReference>
</ItemGroup>

</Project>
Loading
Loading