Fix Pester #4
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: ModuleTests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set PSRepository to Trusted for PowerShell Gallery | |
shell: pwsh | |
run: | | |
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | |
- name: Install PSGraph module | |
shell: pwsh | |
run: | | |
Install-Module -Name PSGraph -Repository PSGallery -Force | |
- name: Load Functions | |
shell: pwsh | |
run: | | |
.\Diagrammer.Core.psm1 | |
- name: test module | |
id: test_module | |
uses: zyborg/pester-tests-report@v1 | |
with: | |
include_paths: Tests | |
report_name: module_tests | |
report_title: My Module Tests | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: dump test results | |
shell: powershell | |
run: | | |
Write-Host 'Total Tests Executed...: ${{ steps.test_module.outputs.total_count }}' | |
Write-Host 'Total Tests PASSED.....: ${{ steps.test_module.outputs.passed_count }}' | |
Write-Host 'Total Tests FAILED.....: ${{ steps.test_module.outputs.failed_count }}' |