Skip to content

Commit

Permalink
if success()
Browse files Browse the repository at this point in the history
  • Loading branch information
UniverseCitiz3n committed Jan 18, 2021
1 parent 7426c0c commit c5f6528
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/psgallery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ jobs:
run: |
Invoke-Pester .\tests\Unit.Tests.ps1 -Passthru
- name: Install PSScriptAnalyzer module
if: success()
shell: pwsh
run: |
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module PSScriptAnalyzer -ErrorAction Stop
- name: Lint with PSScriptAnalyzer
if: success()
shell: pwsh
run: |
Invoke-ScriptAnalyzer -Path .\Intune-App-Sandbox\Public\*.ps1 -Recurse -Outvariable issues -ExcludeRule PSAvoidUsingWriteHost,PSUseShouldProcessForStateChangingFunctions
Expand Down

0 comments on commit c5f6528

Please sign in to comment.