diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..669f038 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ + +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup dotnet + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8 + source-url: https://nuget.pkg.github.com/mjczone/index.json + env: + NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} #github action provided token + + - name: Set VERSION_NUMBER variable from tag + run: echo "VERSION_NUMBER=${GITHUB_REF_NAME/v/}" >> $GITHUB_ENV + + - name: Build + run: dotnet build --configuration Release /p:Version=${VERSION_NUMBER} + + - name: Test + run: dotnet test --configuration Release /p:Version=${VERSION_NUMBER} --no-build + + - name: Pack + run: dotnet pack --configuration Release /p:Version=${VERSION_NUMBER} --no-build --output nupkgs + + - name: Push + run: dotnet nuget push nupkgs/${PACKAGE_ID}.${VERSION_NUMBER}.nupkg + env: + PACKAGE_ID: "DapperMatic" diff --git a/DapperMatic.sln b/DapperMatic.sln new file mode 100644 index 0000000..0369a65 --- /dev/null +++ b/DapperMatic.sln @@ -0,0 +1,36 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{80E77F84-7DB0-4CBF-9E43-4A6E9F1758B2}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DapperMatic", "src\DapperMatic\DapperMatic.csproj", "{48C04108-798F-4CED-8874-D146500778EB}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{C1CEAB9E-CD38-4AA7-B004-B0248F7C39A7}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DapperMatic.Tests", "tests\DapperMatic.Tests\DapperMatic.Tests.csproj", "{9FF5A12B-6617-4492-9BD0-434C58051054}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {48C04108-798F-4CED-8874-D146500778EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {48C04108-798F-4CED-8874-D146500778EB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {48C04108-798F-4CED-8874-D146500778EB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {48C04108-798F-4CED-8874-D146500778EB}.Release|Any CPU.Build.0 = Release|Any CPU + {9FF5A12B-6617-4492-9BD0-434C58051054}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9FF5A12B-6617-4492-9BD0-434C58051054}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9FF5A12B-6617-4492-9BD0-434C58051054}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9FF5A12B-6617-4492-9BD0-434C58051054}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {48C04108-798F-4CED-8874-D146500778EB} = {80E77F84-7DB0-4CBF-9E43-4A6E9F1758B2} + {9FF5A12B-6617-4492-9BD0-434C58051054} = {C1CEAB9E-CD38-4AA7-B004-B0248F7C39A7} + EndGlobalSection +EndGlobal diff --git a/src/DapperMatic/Class1.cs b/src/DapperMatic/Class1.cs new file mode 100644 index 0000000..2002191 --- /dev/null +++ b/src/DapperMatic/Class1.cs @@ -0,0 +1,6 @@ +namespace DapperMatic; + +public class Class1 +{ + +} diff --git a/src/DapperMatic/DapperMatic.csproj b/src/DapperMatic/DapperMatic.csproj new file mode 100644 index 0000000..c4c03c2 --- /dev/null +++ b/src/DapperMatic/DapperMatic.csproj @@ -0,0 +1,23 @@ + + + + DapperMatic + 0.0.1 + MJC + MJCZone Inc. + + Additional extensions leveraging Dapper. + + + + + net8.0 + enable + enable + + + + + + + diff --git a/tests/DapperMatic.Tests/DapperMatic.Tests.csproj b/tests/DapperMatic.Tests/DapperMatic.Tests.csproj new file mode 100644 index 0000000..875c924 --- /dev/null +++ b/tests/DapperMatic.Tests/DapperMatic.Tests.csproj @@ -0,0 +1,27 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + + + + + + + + + diff --git a/tests/DapperMatic.Tests/UnitTest1.cs b/tests/DapperMatic.Tests/UnitTest1.cs new file mode 100644 index 0000000..568a8ef --- /dev/null +++ b/tests/DapperMatic.Tests/UnitTest1.cs @@ -0,0 +1,10 @@ +namespace DapperMatic.Tests; + +public class UnitTest1 +{ + [Fact] + public void Test1() + { + + } +} \ No newline at end of file