Skip to content

Commit

Permalink
build(github): add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
seangwright committed Jul 2, 2023
1 parent 57cb688 commit 5fe9548
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions XperienceCommunity.ItemTemplates.sln
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5fe9548

Please sign in to comment.