diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1ff3077 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +name: 'CI: Build and Test' + +on: + push: + branches: [main] + paths: + - '**.cs' + - '**.csproj' + - '**.props' + - '**.targets' + - '**.sln' + pull_request: + branches: [main] + paths: + - '**.cs' + - '**.csproj' + - '**.props' + - '**.targets' + - '**.sln' + +jobs: + build: + name: build + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + global-json-file: global.json + + - name: Install dependencies + run: dotnet restore --locked-mode + + - name: Build Solution + run: dotnet build --configuration Release --no-restore + + - name: Test Solution + run: dotnet test --configuration Release --no-build --no-restore diff --git a/XperienceCommunity.ItemTemplates.sln b/XperienceCommunity.ItemTemplates.sln new file mode 100644 index 0000000..52d1028 --- /dev/null +++ b/XperienceCommunity.ItemTemplates.sln @@ -0,0 +1,26 @@ +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", "{8F2F3483-A5D9-4357-87EC-B7315BBEF619}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Templates", "src\templates\Templates.csproj", "{A284D7E9-7354-437E-91B1-ED9542209912}" +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 + {A284D7E9-7354-437E-91B1-ED9542209912}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A284D7E9-7354-437E-91B1-ED9542209912}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A284D7E9-7354-437E-91B1-ED9542209912}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A284D7E9-7354-437E-91B1-ED9542209912}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {A284D7E9-7354-437E-91B1-ED9542209912} = {8F2F3483-A5D9-4357-87EC-B7315BBEF619} + EndGlobalSection +EndGlobal