Skip to content

build(build): add OS matrix and -CI flag to Pester tests workflow#195

Merged
WilliamBerryiii merged 2 commits intomainfrom
ci/issue-62-pester-tests-os-matrix
Feb 19, 2026
Merged

build(build): add OS matrix and -CI flag to Pester tests workflow#195
WilliamBerryiii merged 2 commits intomainfrom
ci/issue-62-pester-tests-os-matrix

Conversation

@WilliamBerryiii
Copy link
Member

@WilliamBerryiii WilliamBerryiii commented Feb 17, 2026

Description

Add OS matrix and -CI flag to the reusable Pester tests workflow.

  • Expand the pester job to run across ubuntu-latest, windows-latest, and macos-latest via a strategy matrix with fail-fast: false.
  • Pass the -CI flag to pester.config.ps1 so test configuration can detect CI environments.
  • Suffix artifact names with ${{ matrix.os }} to prevent upload collisions across matrix legs.
  • Restrict coverage upload and threshold steps to ubuntu-latest only to avoid duplicate coverage reports.

Closes #62

Type of Change

  • 🐛 Bug fix (non-breaking change fixing an issue)
  • ✨ New feature (non-breaking change adding functionality)
  • 💥 Breaking change (fix or feature causing existing functionality to change)
  • 📚 Documentation update
  • 🏗️ Infrastructure change (Terraform/IaC)
  • ♻️ Refactoring (no functional changes)

Component(s) Affected

  • deploy/000-prerequisites - Azure subscription setup
  • deploy/001-iac - Terraform infrastructure
  • deploy/002-setup - OSMO control plane / Helm
  • deploy/004-workflow - Training workflows
  • src/training - Python training scripts
  • docs/ - Documentation

Testing Performed

  • Terraform plan reviewed (no unexpected changes)
  • Terraform apply tested in dev environment
  • Training scripts tested locally with Isaac Sim
  • OSMO workflow submitted successfully
  • Smoke tests passed (smoke_test_azure.py)

Documentation Impact

  • No documentation changes needed
  • Documentation updated in this PR
  • Documentation issue filed

Checklist

Copilot AI review requested due to automatic review settings February 17, 2026 06:08
@github-actions
Copy link

github-actions bot commented Feb 17, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copy link

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

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 -CI flag to pester.config.ps1 for 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

@WilliamBerryiii WilliamBerryiii force-pushed the ci/issue-62-pester-tests-os-matrix branch from de6fce2 to acc08be Compare February 17, 2026 06:11
@WilliamBerryiii WilliamBerryiii changed the title build(build): add OS matrix and Harden Runner to Pester tests workflow build(build): add OS matrix and -CI flag to Pester tests workflow Feb 17, 2026
Copilot AI review requested due to automatic review settings February 18, 2026 02:18
Copy link

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Copy link
Contributor

@bindsi bindsi left a comment

Choose a reason for hiding this comment

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

maybe, we should follow the suggestion from Copilot´s review

- 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
@WilliamBerryiii WilliamBerryiii force-pushed the ci/issue-62-pester-tests-os-matrix branch from 3640896 to 6329ac1 Compare February 19, 2026 19:40
@WilliamBerryiii WilliamBerryiii merged commit 6806647 into main Feb 19, 2026
14 checks passed
@WilliamBerryiii WilliamBerryiii modified the milestones: v0.4.0, v0.11.0 Mar 1, 2026
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.

ci: add Pester tests GitHub Actions workflow

6 participants