Skip to content

Migrate Pester test suite from v4 to v5 #8

Migrate Pester test suite from v4 to v5

Migrate Pester test suite from v4 to v5 #8

Workflow file for this run

name: CI
permissions:
checks: write
pull-requests: write
contents: read
on:
push:
branches: [ master ]
paths:
- "PSDepend/**"
- "Tests/**"
- "build.ps1"
- "psakeFile.ps1"
- "requirements.psd1"
pull_request:
paths:
- "PSDepend/**"
- "Tests/**"
- "build.ps1"
- "psakeFile.ps1"
- "requirements.psd1"
workflow_dispatch:
jobs:
test:
name: Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
steps:
- uses: actions/checkout@v4
- name: Bootstrap
shell: pwsh
run: ./build.ps1 -Bootstrap -Task Init
- name: Test
shell: pwsh
run: ./build.ps1 -Task Test
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
with:
name: testResults-${{ matrix.os }}
path: ./Output/testResults.xml
publish-test-results:
name: Publish Test Results
needs: test
runs-on: ubuntu-latest
if: ${{ !cancelled() }}
steps:
- uses: actions/download-artifact@v4
with:
path: artifacts
- uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: artifacts/**/*.xml