-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.08 KB
/
lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Lint Test
on:
push:
workflow_dispatch:
permissions: read-all
jobs:
lint-test:
name: Lint Test
runs-on: ubuntu-latest
# runs-on: windows-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
# - name: Setup PSScriptAnalyzer settings
# run: cp Testing/Linting/MegaLinter/.powershell-psscriptanalyzer.psd1 ./powershell-psscriptanalyzer.psd1
# - name: Run PSScriptAnalyzer
# uses: devblackops/github-action-psscriptanalyzer@master
# with:
# repoToken: ${{ secrets.GITHUB_TOKEN }}
# settingsPath: ./powershell-psscriptanalyzer.psd1
# sendComment: true
# failOnErrors: true
# failOnWarnings: true
# failOnInfos: true
- name: Run PSScriptAnalyzer
uses: james-garriss/github-action-psscriptanalyzer@master
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
# settingsPath: ./powershell-psscriptanalyzer.psd1
sendComment: true
failOnErrors: true
failOnWarnings: true
failOnInfos: true