build(build): add OS matrix and -CI flag to Pester tests workflow#195
Merged
WilliamBerryiii merged 2 commits intomainfrom Feb 19, 2026
Merged
build(build): add OS matrix and -CI flag to Pester tests workflow#195WilliamBerryiii merged 2 commits intomainfrom
WilliamBerryiii merged 2 commits intomainfrom
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
There was a problem hiding this comment.
Pull request overview
This PR enhances the Pester tests workflow to support cross-platform testing by adding an OS matrix strategy, integrating Harden Runner security hardening, and enabling CI-specific test configuration.
Changes:
- Add OS matrix strategy to run tests on Ubuntu, Windows, and macOS with fail-fast disabled
- Add Harden Runner step for security hardening
- Pass
-CIflag topester.config.ps1for CI-aware test configuration - Suffix artifact names with OS to prevent upload collisions across matrix legs
- Restrict coverage uploads and threshold checks to ubuntu-latest only
de6fce2 to
acc08be
Compare
agreaves-ms
approved these changes
Feb 18, 2026
bindsi
approved these changes
Feb 18, 2026
Contributor
bindsi
left a comment
There was a problem hiding this comment.
maybe, we should follow the suggestion from Copilot´s review
auyidi1
approved these changes
Feb 18, 2026
rezatnoMsirhC
approved these changes
Feb 18, 2026
- add strategy matrix for ubuntu-latest, windows-latest, macos-latest - pass -CI flag to pester.config.ps1 - suffix artifact names with matrix OS for uniqueness - restrict coverage collection to ubuntu-latest only Closes #62
Pester 5 Run.Exit terminates the process on failure, preventing GITHUB_OUTPUT from being written. Override Run.Exit to false so the Check results step correctly detects test failures. 🤖 - Generated by Copilot
3640896 to
6329ac1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add OS matrix and
-CIflag to the reusable Pester tests workflow.pesterjob to run acrossubuntu-latest,windows-latest, andmacos-latestvia a strategy matrix withfail-fast: false.-CIflag topester.config.ps1so test configuration can detect CI environments.${{ matrix.os }}to prevent upload collisions across matrix legs.ubuntu-latestonly to avoid duplicate coverage reports.Closes #62
Type of Change
Component(s) Affected
deploy/000-prerequisites- Azure subscription setupdeploy/001-iac- Terraform infrastructuredeploy/002-setup- OSMO control plane / Helmdeploy/004-workflow- Training workflowssrc/training- Python training scriptsdocs/- DocumentationTesting Performed
planreviewed (no unexpected changes)applytested in dev environmentsmoke_test_azure.py)Documentation Impact
Checklist