-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpsakeFile.ps1
More file actions
31 lines (24 loc) · 1.21 KB
/
psakeFile.ps1
File metadata and controls
31 lines (24 loc) · 1.21 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
Properties {
# Build a monolithic PSM1 if desired (kept false to use the module layout as-is)
$PSBPreference.Build.CompileModule = $false
# Default help locale for generated help content
$PSBPreference.Help.DefaultLocale = 'en-US'
# Default compatible output format for pester tests (github actions)
$PSBPreference.Test.OutputFormat = 'NUnitXml'
# Pester test results path used by the CI artifact upload
$PSBPreference.Test.OutputFile = 'out/testResults.xml'
# only process Markdown help under docs/en-US
$PSBPreference.Help.SourcePath = 'docs/en-US'
# external help (MAML) output folder
$PSBPreference.Help.OutputPath = 'docs/en-US'
# explicit Path
$PSBPreference.Test.Path = 'tests'
# API key is taken from the environment variable (set by CI from repo Secret)
$PSBPreference.Publish.PSRepositoryApiKey = $env:PSGALLERY_API_KEY
}
# Default target runs the test suite
Task Default -Depends Test
# Delegate to PowerShellBuild built-in tasks (require at least these versions)
Task Test -FromModule PowerShellBuild -MinimumVersion '0.7.1'
Task Analyze -FromModule PowerShellBuild -MinimumVersion '0.7.1'
Task Publish -FromModule PowerShellBuild -MinimumVersion '0.7.1'