Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build and Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
build-and-test:
runs-on: windows-latest
name: Build and Test (Windows)

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.x'

- name: Install .NET MAUI workload
run: dotnet workload install maui

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build -c Release --no-restore

- name: Run dotnet format
run: dotnet format CalendarMaker-MAUI/CalendarMaker-MAUI.csproj --verify-no-changes --verbosity diagnostic
continue-on-error: true

- name: Run tests
run: dotnet test -c Release --no-build --verbosity normal

# - name: Upload build artifacts
# uses: actions/upload-artifact@v4
# if: success()
# with:
# name: windows-build
# path: CalendarMaker-MAUI/bin/Release/net10.0-windows10.0.19041.0/
# retention-days: 7
Loading