Skip to content

Merge pull request #1 from seangwright/feat/update-xperience-29 #11

Merge pull request #1 from seangwright/feat/update-xperience-29

Merge pull request #1 from seangwright/feat/update-xperience-29 #11

Workflow file for this run

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@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
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
- name: Build Package
run: |
cp ./README.md ./src
dotnet pack ./src/templatepack.csproj -o ./
shell: pwsh