Skip to content

Hope this fix pester #7

Hope this fix pester

Hope this fix pester #7

Workflow file for this run

name: ModuleTests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
permissions:
checks: write
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: pwsh
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 }}'