Skip to content

Create TROUBLESHOOTING.md #38

Create TROUBLESHOOTING.md

Create TROUBLESHOOTING.md #38

name: PowerShell Testing
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup PowerShell
shell: pwsh
run: |
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module -Name Pester -Force -SkipPublisherCheck
- name: Run Pester Tests
shell: pwsh
run: |
Invoke-Pester -Path "Tests/" -OutputFormat NUnitXml -OutputFile "TestResults.xml" -CI
- name: Publish Test Results
uses: dorny/test-reporter@v1
if: always()
with:
name: PowerShell Tests
path: TestResults.xml
reporter: java-junit
- name: Upload Test Results
uses: actions/upload-artifact@v3
if: always()
with:
name: test-results
path: TestResults.xml