Skip to content

Commit 291e05b

Browse files
Create psscriptanalyzer-check.yml
Signed-off-by: LUIZ HAMILTON ROBERTO DA SILVA <luizhamilton.lhr@gmail.com>
1 parent 9e332b1 commit 291e05b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Analyze PowerShell Scripts
2+
3+
on:
4+
push:
5+
paths:
6+
- '**/*.ps1'
7+
pull_request:
8+
paths:
9+
- '**/*.ps1'
10+
workflow_dispatch:
11+
12+
jobs:
13+
psscriptanalyzer:
14+
name: PowerShell Code Style Check
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout Repository
19+
uses: actions/checkout@v4.2.2
20+
21+
- name: Run PSScriptAnalyzer
22+
uses: microsoft/psscriptanalyzer-action@v1
23+
with:
24+
path: '.'
25+
recurse: true

0 commit comments

Comments
 (0)