Skip to content

Commit

Permalink
Do not fail the build when there are errors in the PowerShell quality…
Browse files Browse the repository at this point in the history
… check
  • Loading branch information
ivandelagemaat committed Aug 13, 2021
1 parent 300d0aa commit e22feec
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,24 @@ jobs:
$errors = $issues.Where({$_.Severity -eq 'Error'})
$warnings = $issues.Where({$_.Severity -eq 'Warning'})
if ($errors) {
Write-Error "There were $($errors.Count) errors and $($warnings.Count) warnings total."
Write-Warning "There were $($errors.Count) errors and $($warnings.Count) warnings total."
} else {
Write-Output "There were $($errors.Count) errors and $($warnings.Count) warnings total."
}
$errors
$warnings
- name: Archive ISHRemote module
uses: actions/upload-artifact@v2
with:
name: ISHRemote-module
path: Source/ISHRemote/Trisoft.ISHRemote/bin/Release/*.nupkg

# - name: Test with Pester
# shell: pwsh
# run: Invoke-Pester Unit.Tests.ps1 -Passthru | Export-CliXml -Path Unit.Tests.xml
# - name: Upload test results
# uses: actions/upload-artifact@v2
# with:
# name: ubuntu-Unit-Tests
# path: Unit.Tests.xml

# if: ${{ always() }}

0 comments on commit e22feec

Please sign in to comment.