Update MyModule.Tests.ps1 #46
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Pester v5 | |
| shell: pwsh | |
| run: | | |
| Install-Module Pester -Force -Scope CurrentUser -SkipPublisherCheck | |
| - name: Run Pester smoke tests | |
| shell: pwsh | |
| run: | | |
| # Only run MyModule.Tests.ps1, skip any other test files | |
| Invoke-Pester -Path .\.github\tests\MyModule.Tests.ps1 |