-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (62 loc) · 1.94 KB
/
Lint-SourceCode.yml
File metadata and controls
66 lines (62 loc) · 1.94 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Lint-SourceCode
on:
workflow_call:
inputs:
RunsOn:
type: string
description: The type of runner to use for the job.
required: true
OS:
type: string
description: The operating system name.
required: true
Name:
type: string
description: The name of the module to process. Scripts default to the repository name if nothing is specified.
required: false
Debug:
type: boolean
description: Enable debug output.
required: false
default: false
Verbose:
type: boolean
description: Enable verbose output.
required: false
default: false
Version:
type: string
description: Specifies the version of the GitHub module to be installed. The value must be an exact version.
required: false
default: ''
Prerelease:
type: boolean
description: Whether to use a prerelease version of the 'GitHub' module.
required: false
default: false
WorkingDirectory:
type: string
description: The working directory where the script will run from.
required: false
default: '.'
permissions:
contents: read # to checkout the repo and create releases on the repo
jobs:
Lint-SourceCode:
name: Lint-SourceCode (${{ inputs.RunsOn }})
runs-on: ${{ inputs.RunsOn }}
steps:
- name: Checkout Code
uses: actions/checkout@v5
- name: Lint-SourceCode
uses: PSModule/Invoke-ScriptAnalyzer@v3
with:
Debug: ${{ inputs.Debug }}
Prerelease: ${{ inputs.Prerelease }}
Verbose: ${{ inputs.Verbose }}
Version: ${{ inputs.Version }}
Path: src
Settings: SourceCode
WorkingDirectory: ${{ inputs.WorkingDirectory }}
TestResult_Enabled: true
TestResult_TestSuiteName: PSModuleLint-SourceCode-${{ runner.os }}