From 5f464790f8d6107681aafde493292a2effe5d158 Mon Sep 17 00:00:00 2001 From: Justin Yoo Date: Fri, 10 Jul 2020 13:13:06 +0900 Subject: [PATCH] Add test project as dummy --- .github/workflows/release-all.yaml | 48 ++++++++++++++++++- Aliencube.AzureFunctions.Extensions.sln | 9 +++- ...Extensions.Configuration.Json.Tests.csproj | 22 +++++++++ .../DummyTests.cs | 14 ++++++ 4 files changed, 90 insertions(+), 3 deletions(-) create mode 100644 test/Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests/Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests.csproj create mode 100644 test/Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests/DummyTests.cs diff --git a/.github/workflows/release-all.yaml b/.github/workflows/release-all.yaml index 1ba2e22..b433b3f 100644 --- a/.github/workflows/release-all.yaml +++ b/.github/workflows/release-all.yaml @@ -65,13 +65,57 @@ jobs: dir dotnet restore . - - name: Build solution + - name: Build solution for AppSettings + if: steps.release.outputs.module == 'appsettings' + shell: pwsh + run: | + dir + dotnet build ./src/Aliencube.AzureFunctions.Extensions.Configuration.AppSettings -c Release -p:Version=${{ steps.release.outputs.version }} -v minimal + + - name: Build solution for Configuration.Json + if: steps.release.outputs.module == 'configjson' + shell: pwsh + run: | + dir + dotnet build ./src/Aliencube.AzureFunctions.Extensions.Configuration.Json -c Release -p:Version=${{ steps.release.outputs.version }} -v minimal + + - name: Build solution for DependencyInjection + if: steps.release.outputs.module == 'di' + shell: pwsh + run: | + dir + dotnet build ./src/Aliencube.AzureFunctions.Extensions.DependencyInjection -c Release -p:Version=${{ steps.release.outputs.version }} -v minimal + + - name: Build solution for OpenApi + if: steps.release.outputs.module == 'swagger' shell: pwsh run: | dir dotnet build . -c Release -p:Version=${{ steps.release.outputs.version }} -v minimal - - name: Test solution + - name: Test solution for AppSettings + if: steps.release.outputs.module == 'appsettings' + shell: pwsh + run: | + dir + dotnet test ./test/Aliencube.AzureFunctions.Extensions.Configuration.AppSettings.Tests -c Release + + - name: Test solution for Configuration.Json + if: steps.release.outputs.module == 'configjson' + shell: pwsh + run: | + dir + dotnet test ./test/Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests -c Release + + - name: Test solution for DependencyInjection + if: steps.release.outputs.module == 'di' + shell: pwsh + run: | + dir + dotnet test ./test/Aliencube.AzureFunctions.Extensions.DependencyInjection.Tests -c Release + + - name: Test solution for OpenApi + if: steps.release.outputs.module == 'swagger' shell: pwsh run: | dir diff --git a/Aliencube.AzureFunctions.Extensions.sln b/Aliencube.AzureFunctions.Extensions.sln index f049a1e..4b63433 100644 --- a/Aliencube.AzureFunctions.Extensions.sln +++ b/Aliencube.AzureFunctions.Extensions.sln @@ -45,7 +45,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aliencube.AzureFunctions.Fu EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aliencube.AzureFunctions.Extensions.OpenApi.CLI", "src\Aliencube.AzureFunctions.Extensions.OpenApi.CLI\Aliencube.AzureFunctions.Extensions.OpenApi.CLI.csproj", "{5C35651B-97D0-4115-81FC-ED8D7ACD71A7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aliencube.AzureFunctions.Extensions.OpenApi.CLI.Tests", "test\Aliencube.AzureFunctions.Extensions.OpenApi.CLI.Tests\Aliencube.AzureFunctions.Extensions.OpenApi.CLI.Tests.csproj", "{65AED6F0-D27E-4D6E-BA42-AD6EE1338082}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aliencube.AzureFunctions.Extensions.OpenApi.CLI.Tests", "test\Aliencube.AzureFunctions.Extensions.OpenApi.CLI.Tests\Aliencube.AzureFunctions.Extensions.OpenApi.CLI.Tests.csproj", "{65AED6F0-D27E-4D6E-BA42-AD6EE1338082}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests", "test\Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests\Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests.csproj", "{F0899514-88DC-4CBF-A392-825BDC094689}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -113,6 +115,10 @@ Global {65AED6F0-D27E-4D6E-BA42-AD6EE1338082}.Debug|Any CPU.Build.0 = Debug|Any CPU {65AED6F0-D27E-4D6E-BA42-AD6EE1338082}.Release|Any CPU.ActiveCfg = Release|Any CPU {65AED6F0-D27E-4D6E-BA42-AD6EE1338082}.Release|Any CPU.Build.0 = Release|Any CPU + {F0899514-88DC-4CBF-A392-825BDC094689}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F0899514-88DC-4CBF-A392-825BDC094689}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F0899514-88DC-4CBF-A392-825BDC094689}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F0899514-88DC-4CBF-A392-825BDC094689}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -133,6 +139,7 @@ Global {C9A65D52-A167-4673-823C-D2FEA080FA7A} = {810145E0-41CF-4E24-BD9C-E7517498BA29} {5C35651B-97D0-4115-81FC-ED8D7ACD71A7} = {810145E0-41CF-4E24-BD9C-E7517498BA29} {65AED6F0-D27E-4D6E-BA42-AD6EE1338082} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC} + {F0899514-88DC-4CBF-A392-825BDC094689} = {8B62E3FB-9062-4716-803A-1FA51FCE68BC} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {70FEC644-BB3C-4441-AF91-DC694803C8F2} diff --git a/test/Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests/Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests.csproj b/test/Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests/Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests.csproj new file mode 100644 index 0000000..2a063d9 --- /dev/null +++ b/test/Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests/Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests.csproj @@ -0,0 +1,22 @@ + + + + net461 + + false + + + + + + + + + + + + + + + + diff --git a/test/Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests/DummyTests.cs b/test/Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests/DummyTests.cs new file mode 100644 index 0000000..0987a7b --- /dev/null +++ b/test/Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests/DummyTests.cs @@ -0,0 +1,14 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace Aliencube.AzureFunctions.Extensions.Configuration.Json.Tests +{ + [TestClass] + public class DummyTests + { + [TestMethod] + public void Given_Nothing_Then_It_Should_Return_True() + { + Assert.IsTrue(true); + } + } +}