Refactor: Centralize xUnit tests into reusable workflow and remove legacy verification by Copilot · Pull Request #26243 · PowerShell/PowerShell

@TravisEz13

- Add reusable workflow: .github/workflows/xunit-tests.yml
- Remove xUnit test step from build composite action
- Remove xUnit artifact upload from build composite action
- Delete verify_xunit composite action
- Update all workflows (linux-ci, windows-ci, macos-ci) to use new workflow_call job
- Remove -SkipFailing and continue-on-error usage from tests
- Ensure failures now fail CI directly

Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>

Copilot AI changed the title [WIP] Refactor and centralize xUnit tests into reusable workflow Refactor: Centralize xUnit tests into reusable workflow and remove legacy verification

Oct 18, 2025

@TravisEz13

The build artifact contains psoptions.json in the build folder, but
Restore-PSOptions was looking for it in the repository root. Updated
to pass the correct path from the downloaded artifact.

Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>

@TravisEz13

Changed from using GitHub Actions context syntax ${{ runner.workspace }}
to PowerShell environment variable $env:RUNNER_WORKSPACE to ensure
proper path resolution within the PowerShell script block.

Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>

@TravisEz13

Per feedback, simplified the xUnit workflow to build PowerShell directly
using Start-PSBuild instead of downloading build artifacts. This:
- Eliminates dependency on ci_build job
- Makes xUnit tests truly independent and retriable
- Avoids complexity of artifact extraction
- Follows the established pattern used elsewhere

Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>

TravisEz13

Removed Configuration 'Release', ReleaseTag, and -CI switch per feedback.
xUnit tests need Debug build (the default), and don't need Pester
(which is what -CI restores). Simplified to just Start-PSBuild -PSModuleRestore.

Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
Simplified Start-PSBuild call to use all defaults:
- Debug configuration (default)
- PSModuleRestore (now default)
No parameters needed for standard xUnit test build.

Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>

Copilot stopped work on behalf of TravisEz13 due to an error

October 18, 2025 22:48

TravisEz13

Copilot AI review requested due to automatic review settings

October 19, 2025 19:58

daxian-dbw

TravisEz13

SeeminglyScience

@TravisEz13 TravisEz13 deleted the copilot/refactor-xunit-tests-workflow branch

October 20, 2025 22:59

TravisEz13 added a commit to TravisEz13/PowerShell that referenced this pull request

Nov 19, 2025
…gacy verification (PowerShell#26243)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>

SIRMARGIN pushed a commit to SIRMARGIN/PowerShell that referenced this pull request

Dec 12, 2025
…gacy verification (PowerShell#26243)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>

kilasuit pushed a commit to kilasuit/PowerShell that referenced this pull request

Jan 2, 2026
…gacy verification (PowerShell#26243)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>

daxian-dbw pushed a commit to daxian-dbw/PowerShell that referenced this pull request

Feb 12, 2026
…gacy verification (PowerShell#26243)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>

TravisEz13 added a commit to TravisEz13/PowerShell that referenced this pull request

Feb 20, 2026
…gacy verification (PowerShell#26243)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>