File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,15 @@ jobs:
1515 runs-on : ubuntu-latest
1616 steps :
1717 - uses : actions/checkout@v4
18- - name : linter
18+ - name : Lint sources
1919 shell : pwsh
2020 run : ./Invoke-Linter.ps1 -exitCodeOnError
2121 if : always()
22- - name : formatter
22+ - name : Check formatting
23+ id : format
2324 shell : pwsh
2425 run : ./Invoke-Formatter.ps1 -exitCodeOnFormat
2526 if : always()
27+ - name : Formatting changes
28+ run : git diff
29+ if : always() && steps.format.outcome != 'success'
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ function Import-ModuleLocally {
3737 Import-Module $importModule ;
3838}
3939
40- Import-ModuleLocally - Name PSScriptAnalyzer - Version 1.21 .0 ;
40+ Import-ModuleLocally - Name PSScriptAnalyzer - Version 1.24 .0 ;
4141Import-ModuleLocally - Name PowerShell- Beautifier - Version 1.2 .5 ;
4242
4343# Use Invoke-Formatter on all code
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ function Import-ModuleLocally {
3737 Import-Module $importModule ;
3838}
3939
40- Import-ModuleLocally - Name PSScriptAnalyzer - Version 1.21 .0 ;
40+ Import-ModuleLocally - Name PSScriptAnalyzer - Version 1.24 .0 ;
4141
4242# Use Invoke-Formatter on all code
4343# Using -Exclude breaks the -Filter functionality so a regex using Where-Object is used instead
You can’t perform that action at this time.
0 commit comments