Skip to content

Add PR validation workflow for automated build verification#25

Merged
nor0x merged 4 commits intomainfrom
copilot/fix-24
Sep 17, 2025
Merged

Add PR validation workflow for automated build verification#25
nor0x merged 4 commits intomainfrom
copilot/fix-24

Conversation

Copy link
Contributor

Copilot AI commented Sep 17, 2025

This PR adds a GitHub Actions workflow that automatically validates Pull Requests by ensuring the project builds successfully with the PR's source code.

What's Added

A new workflow file .github/workflows/pr-validation.yml that:

  • Triggers automatically on PR events (opened, synchronized, reopened) targeting the main branch
  • Mirrors the build process from the existing dotnet.yml publishing workflow
  • Validates the main library project (Maui.ColorPicker.csproj) for efficient and focused validation
  • Uses the same environment (Windows runner, .NET 8.0, MAUI workloads, SkiaSharp EAP source)

Key Features

The validation workflow includes all essential build steps:

  1. Setup .NET 8.0 environment
  2. Install MAUI workload for cross-platform builds
  3. Add SkiaSharp NuGet source (required dependency)
  4. Restore workloads and dependencies for the main project
  5. Build the core library project in Release configuration

Benefits

  • Early feedback - Catch build issues before code review
  • Consistent validation - Same build process as production publishing
  • Efficient validation - Focuses on the core library that gets published to NuGet
  • Multi-platform support - Validates all target frameworks (Android, iOS, macOS Catalyst, Windows)
  • Zero maintenance - Automatically runs without manual intervention

The workflow excludes all publishing steps (NuGet packaging, releases, deployments) and focuses purely on build validation of the main library project, making it fast and suitable for PR validation.

Fixes #24.

Warning

aka.ms

If you need me to access, download, or install something from one of these locations, you can either:


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copy link
Contributor Author

Copilot AI commented Sep 17, 2025

@nor0x 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

Copilot AI and others added 2 commits September 17, 2025 12:41
Co-authored-by: nor0x <3210391+nor0x@users.noreply.github.com>
Co-authored-by: nor0x <3210391+nor0x@users.noreply.github.com>
Copilot AI changed the title [WIP] Create PR validation pipeline Add PR validation workflow for automated build verification Sep 17, 2025
Copilot AI requested a review from nor0x September 17, 2025 12:44
@nor0x nor0x marked this pull request as ready for review September 17, 2025 13:47
Copy link
Owner

@nor0x nor0x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - let's try it

@nor0x nor0x requested a review from Copilot September 17, 2025 13:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds a GitHub Actions workflow for automated PR validation that builds the project to catch issues early. The workflow triggers on PR events targeting the main branch and validates the complete solution using the same build environment as the production workflow.

Key changes:

  • New PR validation workflow with automated build verification
  • Mirrors production build process with .NET 8.0, MAUI workloads, and SkiaSharp dependencies
  • Excludes publishing steps to focus purely on build validation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@nor0x
Copy link
Owner

nor0x commented Sep 17, 2025

@copilot building Maui.ColorPicker/Maui.ColorPicker.csproj should be enough

…validation

Co-authored-by: nor0x <3210391+nor0x@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Sep 17, 2025

@copilot building Maui.ColorPicker/Maui.ColorPicker.csproj should be enough

Updated the workflow to build only Maui.ColorPicker.csproj instead of the entire solution for more focused and efficient PR validation. The workflow now specifically restores and builds just the main library project. (b47b4b3)

Copilot AI requested a review from nor0x September 17, 2025 19:00
@nor0x nor0x merged commit f067824 into main Sep 17, 2025
1 check passed
@nor0x nor0x deleted the copilot/fix-24 branch September 17, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create PR validation pipeline

2 participants