Restore PSGSuite release pipeline and enable new maintainers #17
This file contains 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
name: PowerShell - Build Test Deploy | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build: | |
name: Build Module | |
runs-on: windows-latest | |
needs: [] | |
timeout-minutes: 120 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build Module | |
shell: powershell | |
run: | | |
. ./build.ps1 | |
- name: Collect BuildOutput directory | |
uses: actions/upload-artifact@v4 | |
with: | |
name: BuildOutput | |
path: BuildOutput | |
test: | |
name: Test Module | |
needs: | |
- build | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
- windows-2022 | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 120 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Download BuildOutput directory | |
uses: actions/download-artifact@v4 | |
with: | |
name: BuildOutput | |
path: BuildOutput | |
- name: Test Module - pwsh (${{ matrix.os }}) | |
shell: pwsh | |
if: ${{ matrix.os != 'windows-2022' }} | |
run: | | |
. ./build.ps1 -Task Test | |
- name: Test Module - PowerShell (${{ matrix.os }}) | |
shell: powershell | |
if: ${{ matrix.os == 'windows-2022' }} | |
run: | | |
. ./build.ps1 -Task Test | |
- name: Collect Test Result - ${{ matrix.os }} | |
id: test_result | |
uses: zyborg/pester-tests-report@v1 | |
continue-on-error: true | |
with: | |
test_results_path: BuildOutput/TestResults.xml | |
report_name: test_result | |
report_title: Test Results - ${{ matrix.os }} | |
skip_check_run: true | |
github_token: ${{ secrets.GITHUB_TOKEN }} |