Skip to content

v1.2.2

v1.2.2 #12

name: Pull Request Create
on:
pull_request:
types:
- opened
- synchronize
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Test-ModuleManifest
run: |
Test-ModuleManifest -Path .\PowerAzPlus.psd1
shell: pwsh
- name: Invoke-ScriptAnalyzer
run: |
$result = Invoke-ScriptAnalyzer -Path . -Severity Error
if ($result.Count -ne 0) { Write-Output $result; exit 1}
shell: pwsh
- name: Test publish to PowerShell Gallery
run: |
$env:PSGalleryApiKey = "${{ secrets.POWERSHELLGALLERY_API_KEY }}"
Publish-Module -Path . -Repository PSGallery -NuGetApiKey $env:PSGalleryApiKey -WhatIf -Verbose
shell: pwsh