Skip to content

Commit 9ffe96b

Browse files
authored
chore(deps): Update PSScriptAnalyzer from v1.21.0 to v1.24.0 (#33)
Update GitHub Actions build.
1 parent 03c6fac commit 9ffe96b

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/blank.yml renamed to .github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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'

Invoke-Formatter.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
Import-ModuleLocally -Name PowerShell-Beautifier -Version 1.2.5;
4242

4343
# Use Invoke-Formatter on all code

Invoke-Linter.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)