Skip to content

Commit

Permalink
ci: adding template validation
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Jan 27, 2024
1 parent fff8d54 commit fc15990
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,29 @@ jobs:
with:
name: MauiMicroMvvm
solution-path: build.slnf
install-workload: maui
install-workload: maui

validate:
needs: [build]
runs-on: macos-latest
steps:
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
name: NuGet
path: Artifacts
- name: Install Templates
run: dotnet new install Artifacts/AvantiPoint.MauiMicroMvvm.Templates.*.nupkg
- name: Add Local Source
run: dotnet nuget add source ./Artifacts --name Artifacts
- name: Create Test Project
run: dotnet new maui-micro -o TestProject
- name: Restore Workloads
run: dotnet workload restore
working-directory: TestProject
- name: Build Project
run: dotnet build
working-directory: TestProject

0 comments on commit fc15990

Please sign in to comment.