Download PowerShell-master/.github/workflows/xunit-tests.yml from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 1.57 kB
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/.github/workflows/xunit-tests.yml
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/.github/workflows/xunit-tests.yml
-
curl -L -o xunit-tests.yml https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/.github/workflows/xunit-tests.yml
1.57 kB
| name: xUnit Tests (Reusable) | |
| on: | |
| workflow_call: | |
| inputs: | |
| runner_os: | |
| description: 'Runner OS for xUnit tests' | |
| type: string | |
| required: false | |
| default: ubuntu-latest | |
| test_results_artifact_name: | |
| description: 'Artifact name for xUnit test results directory' | |
| type: string | |
| required: false | |
| default: testResults-xunit | |
| permissions: | |
| contents: read | |
| jobs: | |
| xunit: | |
| name: Run xUnit Tests | |
| runs-on: ${{ inputs.runner_os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 1000 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0 | |
| with: | |
| global-json-file: ./global.json | |
| - name: Bootstrap | |
| shell: pwsh | |
| run: | | |
| Import-Module ./tools/ci.psm1 | |
| Invoke-CIInstall -SkipUser | |
| Sync-PSTags -AddRemoteIfMissing | |
| - name: Build PowerShell and run xUnit tests | |
| shell: pwsh | |
| run: | | |
| Import-Module ./tools/ci.psm1 | |
| Start-PSBuild | |
| Write-Host "Running full xUnit test suite (no skipping)..." | |
| Invoke-CIxUnit | |
| Write-Host "Completed xUnit test run." | |
| - name: Upload xUnit results | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| if: always() | |
| with: | |
| name: ${{ inputs.test_results_artifact_name }} | |
| path: ${{ github.workspace }}/xUnitTestResults.xml | |