-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.23 KB
/
Lint-SourceCode.yml
File metadata and controls
38 lines (34 loc) · 1.23 KB
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
37
38
name: Lint-SourceCode
on:
workflow_call:
inputs:
Settings:
type: string
description: The settings object as a JSON string.
required: true
permissions:
contents: read # to checkout the repo and create releases on the repo
jobs:
Lint-SourceCode:
name: Lint-SourceCode (${{ matrix.OSName }})
runs-on: ${{ matrix.RunsOn }}
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(inputs.Settings).TestSuites.SourceCode }}
steps:
- name: Checkout Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Lint-SourceCode
uses: PSModule/Invoke-ScriptAnalyzer@17bb50ef88b72e7d723e56b81d2e04f27ddc7e37 # v4.1.2
with:
Debug: ${{ fromJson(inputs.Settings).Debug }}
Prerelease: ${{ fromJson(inputs.Settings).Prerelease }}
Verbose: ${{ fromJson(inputs.Settings).Verbose }}
Version: ${{ fromJson(inputs.Settings).Version }}
Path: src
WorkingDirectory: ${{ fromJson(inputs.Settings).WorkingDirectory }}
TestResult_Enabled: true
TestResult_TestSuiteName: PSModuleLint-SourceCode-${{ runner.os }}