Skip to content

[Repo Assist] ci: add macos-latest to PowerShell Core test matrix #79

Description

@github-actions

Generated by Repo Assist 🤖 (automated assistant)

Closes #78

Root cause

The test-pwsh CI matrix job in .github/workflows/ci.yml only ran PowerShell Core tests on ubuntu-latest and windows-latest, leaving macOS platform-specific behavior (paths, filesystem, encoding) unverified.

Change summary

Added macos-latest to the os matrix in the test-pwsh job. This reuses the existing PSEdition/version verification and Pester 5.x test steps with no other changes — Ubuntu, Windows Core, and Windows PowerShell 5.1 jobs are unaffected.

Limitations

  • This PR only touches the CI workflow matrix; it does not modify the module code. If macOS-specific test failures surface once this job runs, follow-up fixes to the module may be required.
  • I could not execute the actual macOS GitHub Actions runner from this sandbox; the acceptance criterion of the Pester suite passing on macos-latest will be validated when this PR runs in CI.

Test results

Ran Invoke-Pester ./Tests/AzRetirementMonitor.Tests.ps1 locally (Linux, pwsh 7): 75 passed, 0 failed, 0 skipped.


Warning

Protected Files — Push Permission Denied

This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually.

Protected files

The push was rejected because GitHub Actions does not have workflows permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.

Create the pull request manually
# Download the patch from the workflow run
gh run download 31410216190 -n agent -D /tmp/agent-31410216190

# Create a new branch
git checkout -b feature/issue-78-macos-ci-matrix-2da73e3fc5552ed9 main

# Apply the patch (--3way handles cross-repo patches)
git am --3way /tmp/agent-31410216190/aw-feature-issue-78-macos-ci-matrix.patch

# Push the branch and create the pull request
git push origin feature/issue-78-macos-ci-matrix-2da73e3fc5552ed9
gh pr create --title '[Repo Assist] ci: add macos-latest to PowerShell Core test matrix' --base main --head feature/issue-78-macos-ci-matrix-2da73e3fc5552ed9 --repo cocallaw/AzRetirementMonitor

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • management.azure.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "management.azure.com"

See Network Configuration for more information.

Generated by AzRetirementMonitor Repo Assist · auto · 29.7 AIC · ⌖ 3.12 AIC · ⊞ 10K ·
Comment /repo-assist to run again

Metadata

Metadata

Labels

agentic-workflowsautomationAutomated repository maintenanceciCI/CD pipeline changesenhancementNew feature or requestrepo-assistCreated or maintained by Repo Assist

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions