-
Notifications
You must be signed in to change notification settings - Fork 24
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
1 parent
a55cd23
commit b867649
Showing
8 changed files
with
78 additions
and
48 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,33 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
- name: Use GitVersion | ||
run: | | ||
dotnet tool install --global GitVersion.Tool --version 5.3.7 | ||
dotnet-gitversion /output buildserver /nofetch | ||
- name: Install dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet build --configuration Release --no-restore | ||
- name: Test | ||
run: dotnet test --configuration Release --no-restore --verbosity normal | ||
- name: Upload artifact | ||
uses: actions/[email protected] | ||
with: | ||
path: | | ||
AutofacContrib.NSubstitute/bin/Release/*.nupkg | ||
AutofacContrib.NSubstitute/bin/Release/*.snupkg |
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
17 changes: 14 additions & 3 deletions
17
AutofacContrib.NSubstitute/AutofacContrib.NSubstitute.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,17 +1,28 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<AssemblyName>AutofacContrib.NSubstitute</AssemblyName> | ||
<RootNamespace>AutofacContrib.NSubstitute</RootNamespace> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<Version>4.9.4</Version> | ||
<AssemblyVersion>4.9.4.0</AssemblyVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<Authors>Miguel Madero, Robert Moore and Matt Davies</Authors> | ||
<Description>Auto-mocking Autofac container that uses NSubstitute.</Description> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
<PackageIcon>logo.png</PackageIcon> | ||
<PackageTags>substitute mocking mocks nsubstitute autofac container dependency-injection di testing unit-testing TDD AAA auto-mock auto-substitute</PackageTags> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Autofac" Version="5.2.0" /> | ||
<PackageReference Include="NSubstitute" Version="4.2.2" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="../LICENSE" Pack="true" PackagePath=""/> | ||
<None Include="../logo.png" Pack="true" PackagePath=""/> | ||
</ItemGroup> | ||
|
||
</Project> |
43 changes: 0 additions & 43 deletions
43
AutofacContrib.NSubstitute/AutofacContrib.NSubstitute.nuspec
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<InformationalVersion>$(GitVersion_InformationalVersion)</InformationalVersion> | ||
<FileVersion>$(GitVersion_MajorMinorPatch)</FileVersion> | ||
<AssemblyVersion>$(GitVersion_AssemblySemVer)</AssemblyVersion> | ||
<Version>$(GitVersion_NuGetVersionV2)</Version> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'"> | ||
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/> | ||
</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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<Project> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"sdk": { | ||
"version": "3.1.302", | ||
"version": "3.1.402", | ||
"rollForward": "feature" | ||
} | ||
} |