Update *-Metadata cmdlet and Test-HelpInfoUri #136
Workflow file for this run
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: Test Modules | |
on: | |
pull_request: | |
paths: | |
- 'Projects/Modules/*/Source/**' | |
- 'Projects/Modules/*/Tests/**' | |
- 'Projects/Modules/*/.DevX.jsonc' | |
defaults: | |
run: | |
shell: pwsh | |
jobs: | |
test_modules: | |
name: PowerShell | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
module: | |
- Documentarian | |
- Documentarian.DevX | |
- Documentarian.MarkdownBuilder | |
- Documentarian.MicrosoftDocs | |
- Documentarian.ModuleAuthor | |
- Documentarian.Vale | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install PowerShell modules | |
run: | | |
Set-PSRepository PSGallery -InstallationPolicy Trusted | |
Install-Module InvokeBuild, PlatyPS, PowerShell-Yaml, PsIni -ErrorAction Stop | |
- name: Test ${{ matrix.module }} | |
run: | | |
$PSVersionTable | |
Get-Module -ListAvailable InvokeBuild, PlatyPS, PowerShell-Yaml, PsIni | | |
Format-Table -Property Name, Version, Path | |
Push-Location ./Projects/Modules | |
Invoke-Build | |
Push-Location ./${{ matrix.module }} | |
Invoke-Build -Task Test |