From 68a6bc6ea4b7a56880231d9f11df9b5444aac192 Mon Sep 17 00:00:00 2001 From: Taylor Southwick Date: Wed, 21 Oct 2020 09:17:16 -0700 Subject: [PATCH] Use GitHub action --- .github/workflows/build.yml | 33 ++++++++++++++ AutofacContrib.NSubstitute.sln | 2 + .../AutofacContrib.NSubstitute.csproj | 17 ++++++-- .../AutofacContrib.NSubstitute.nuspec | 43 ------------------- Directory.Build.props | 25 +++++++++++ Directory.Build.targets | 2 + global.json | 2 +- 7 files changed, 77 insertions(+), 47 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 AutofacContrib.NSubstitute/AutofacContrib.NSubstitute.nuspec create mode 100644 Directory.Build.props create mode 100644 Directory.Build.targets diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d85b480 --- /dev/null +++ b/.github/workflows/build.yml @@ -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/upload-artifact@v2.2.0 + with: + path: | + AutofacContrib.NSubstitute/bin/Release/*.nupkg + AutofacContrib.NSubstitute/bin/Release/*.snupkg diff --git a/AutofacContrib.NSubstitute.sln b/AutofacContrib.NSubstitute.sln index c6b9308..ec362cf 100644 --- a/AutofacContrib.NSubstitute.sln +++ b/AutofacContrib.NSubstitute.sln @@ -10,6 +10,8 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A5ECD18F-1D42-444E-BB3A-6062D8B0E256}" ProjectSection(SolutionItems) = preProject BREAKING_CHANGES.md = BREAKING_CHANGES.md + Directory.Build.props = Directory.Build.props + Directory.Build.targets = Directory.Build.targets global.json = global.json LICENSE = LICENSE logo.png = logo.png diff --git a/AutofacContrib.NSubstitute/AutofacContrib.NSubstitute.csproj b/AutofacContrib.NSubstitute/AutofacContrib.NSubstitute.csproj index 03eff7b..2b024c2 100644 --- a/AutofacContrib.NSubstitute/AutofacContrib.NSubstitute.csproj +++ b/AutofacContrib.NSubstitute/AutofacContrib.NSubstitute.csproj @@ -1,12 +1,18 @@ - + netstandard2.0 AutofacContrib.NSubstitute AutofacContrib.NSubstitute true - 4.9.4 - 4.9.4.0 + + + + Miguel Madero, Robert Moore and Matt Davies + Auto-mocking Autofac container that uses NSubstitute. + LICENSE + logo.png + substitute mocking mocks nsubstitute autofac container dependency-injection di testing unit-testing TDD AAA auto-mock auto-substitute @@ -14,4 +20,9 @@ + + + + + diff --git a/AutofacContrib.NSubstitute/AutofacContrib.NSubstitute.nuspec b/AutofacContrib.NSubstitute/AutofacContrib.NSubstitute.nuspec deleted file mode 100644 index 437ac59..0000000 --- a/AutofacContrib.NSubstitute/AutofacContrib.NSubstitute.nuspec +++ /dev/null @@ -1,43 +0,0 @@ - - - - - AutofacContrib.NSubstitute - - - 4.9.4 - - - Miguel Madero, Robert Moore and Matt Davies - - - Auto-mocking Autofac container that uses NSubstitute. - - - http://github.com/MRCollective/AutofacContrib.NSubstitute - - - https://github.com/MRCollective/AutofacContrib.NSubstitute/blob/master/LICENSE - - - https://raw.github.com/MRCollective/AutofacContrib.NSubstitute/master/logo.png - - - substitute mocking mocks nsubstitute autofac container dependency-injection di testing unit-testing TDD AAA auto-mock auto-substitute - - - en-US - - - - - - - - - - - - - - diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..2fa9ffe --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,25 @@ + + + + true + true + true + $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb + + + + $(GitVersion_InformationalVersion) + $(GitVersion_MajorMinorPatch) + $(GitVersion_AssemblySemVer) + $(GitVersion_NuGetVersionV2) + + + + true + + + + + + + \ No newline at end of file diff --git a/Directory.Build.targets b/Directory.Build.targets new file mode 100644 index 0000000..c1df222 --- /dev/null +++ b/Directory.Build.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/global.json b/global.json index fca423c..b4d162f 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "3.1.302", + "version": "3.1.402", "rollForward": "feature" } } \ No newline at end of file