Skip to content

Commit ab86aa5

Browse files
authored
xBitlocker: Updated to a new CI/CD pipeline (#55)
1 parent 24a835b commit ab86aa5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+2582
-1350
lines changed

.MetaTestOptIn.json

-13
This file was deleted.

.codecov.yml

-24
This file was deleted.

.gitattributes

+6
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
# Needed for publishing of examples, build worker defaults to core.autocrlf=input.
22
* text eol=crlf
3+
4+
# Ensure any exe files are treated as binary
5+
*.exe binary
6+
*.jpg binary
7+
*.xl* binary
8+
*.pfx binary

.github/ISSUE_TEMPLATE/Problem_with_resource.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ about: If you have a problem, bug, or enhancement with a resource in this resour
5454
$PSVersionTable
5555
-->
5656

57-
#### Version of the DSC module that was used ('dev' if using current dev branch)
57+
#### Version of the DSC module that was used

.github/PULL_REQUEST_TEMPLATE.md

+31-26
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,52 @@
11
<!--
2-
Thanks for submitting a Pull Request (PR) to this project.
3-
Your contribution to this project is greatly appreciated!
2+
Thanks for submitting a Pull Request (PR) to this project. Your contribution to this project
3+
is greatly appreciated!
44
5-
Please prefix the PR title with the resource name,
6-
e.g. 'ResourceName: My short description'.
7-
If this is a breaking change, then also prefix the PR title
8-
with 'BREAKING CHANGE:',
5+
Please prefix the PR title with the resource name, e.g. 'ResourceName: My short description'.
6+
If this is a breaking change, then also prefix the PR title with 'BREAKING CHANGE:',
97
e.g. 'BREAKING CHANGE: ResourceName: My short description'.
108
11-
You may remove this comment block, and the other comment blocks, but please
12-
keep the headers and the task list.
9+
You may remove this comment block, and the other comment blocks, but please keep the headers
10+
and the task list.
1311
-->
12+
1413
#### Pull Request (PR) description
14+
1515
<!--
16-
Replace this comment block with a description of your PR.
16+
Replace this comment block with a description of your PR. Also, make sure you have updated the
17+
CHANGELOG.md, see the task list below. An entry in the CHANGELOG.md is mandatory for all PRs.
1718
-->
1819

1920
#### This Pull Request (PR) fixes the following issues
21+
2022
<!--
21-
If this PR does not fix an open issue, replace this comment block with None.
22-
If this PR resolves one or more open issues, replace this comment block with
23-
a list the issues using a GitHub closing keyword, e.g.:
24-
- Fixes #123
25-
- Fixes #124
23+
If this PR does not fix an open issue, replace this comment block with None. If this PR
24+
resolves one or more open issues, replace this comment block with a list of the issues using
25+
a GitHub closing keyword, e.g.:
26+
27+
- Fixes #123
28+
- Fixes #124
2629
-->
2730

2831
#### Task list
32+
2933
<!--
30-
To aid community reviewers in reviewing and merging your PR, please take
31-
the time to run through the below checklist and make sure your PR has
32-
everything updated as required.
34+
To aid community reviewers in reviewing and merging your PR, please take the time to run
35+
through the below checklist and make sure your PR has everything updated as required.
3336
34-
Change to [x] for each task in the task list that applies to your PR.
35-
For those task that don't apply to you PR, leave those as is.
37+
Change to [x] for each task in the task list that applies to your PR. For those task that
38+
don't apply to you PR, leave those as is.
3639
-->
37-
- [ ] Added an entry under the Unreleased section of the change log in the CHANGELOG.md.
38-
Entry should say what was changed, and how that affects users (if applicable).
40+
41+
- [ ] Added an entry to the change log under the Unreleased section of the file CHANGELOG.md.
42+
Entry should say what was changed and how that affects users (if applicable), and
43+
reference the issue being resolved (if applicable).
3944
- [ ] Resource documentation added/updated in README.md.
40-
- [ ] Resource parameter descriptions added/updated in README.md, schema.mof
41-
and comment-based help.
45+
- [ ] Resource parameter descriptions added/updated in README.md, schema.mof and comment-based
46+
help.
4247
- [ ] Comment-based help added/updated.
4348
- [ ] Localization strings added/updated in all localization files as appropriate.
4449
- [ ] Examples appropriately added/updated.
45-
- [ ] Unit tests added/updated. See [DSC Resource Testing Guidelines](https://github.com/PowerShell/DscResources/blob/master/TestsGuidelines.md).
46-
- [ ] Integration tests added/updated (where possible). See [DSC Resource Testing Guidelines](https://github.com/PowerShell/DscResources/blob/master/TestsGuidelines.md).
47-
- [ ] New/changed code adheres to [DSC Resource Style Guidelines](https://github.com/PowerShell/DscResources/blob/master/StyleGuidelines.md) and [Best Practices](https://github.com/PowerShell/DscResources/blob/master/BestPractices.md).
50+
- [ ] Unit tests added/updated. See [DSC Community Testing Guidelines](https://dsccommunity.org/guidelines/testing-guidelines).
51+
- [ ] Integration tests added/updated (where possible). See [DSC Community Testing Guidelines](https://dsccommunity.org/guidelines/testing-guidelines).
52+
- [ ] New/changed code adheres to [DSC Community Style Guidelines](https://dsccommunity.org/styleguidelines).

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
DSCResource.Tests
1+
output/
22
.vs
33
.vscode
4-
node_modules

.vscode/analyzersettings.psd1

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
@{
2+
CustomRulePath = '.\output\RequiredModules\DscResource.AnalyzerRules'
3+
includeDefaultRules = $true
4+
IncludeRules = @(
5+
# DSC Resource Kit style guideline rules.
6+
'PSAvoidDefaultValueForMandatoryParameter',
7+
'PSAvoidDefaultValueSwitchParameter',
8+
'PSAvoidInvokingEmptyMembers',
9+
'PSAvoidNullOrEmptyHelpMessageAttribute',
10+
'PSAvoidUsingCmdletAliases',
11+
'PSAvoidUsingComputerNameHardcoded',
12+
'PSAvoidUsingDeprecatedManifestFields',
13+
'PSAvoidUsingEmptyCatchBlock',
14+
'PSAvoidUsingInvokeExpression',
15+
'PSAvoidUsingPositionalParameters',
16+
'PSAvoidShouldContinueWithoutForce',
17+
'PSAvoidUsingWMICmdlet',
18+
'PSAvoidUsingWriteHost',
19+
'PSDSCReturnCorrectTypesForDSCFunctions',
20+
'PSDSCStandardDSCFunctionsInResource',
21+
'PSDSCUseIdenticalMandatoryParametersForDSC',
22+
'PSDSCUseIdenticalParametersForDSC',
23+
'PSMisleadingBacktick',
24+
'PSMissingModuleManifestField',
25+
'PSPossibleIncorrectComparisonWithNull',
26+
'PSProvideCommentHelp',
27+
'PSReservedCmdletChar',
28+
'PSReservedParams',
29+
'PSUseApprovedVerbs',
30+
'PSUseCmdletCorrectly',
31+
'PSUseOutputTypeCorrectly',
32+
'PSAvoidGlobalVars',
33+
'PSAvoidUsingConvertToSecureStringWithPlainText',
34+
'PSAvoidUsingPlainTextForPassword',
35+
'PSAvoidUsingUsernameAndPasswordParams',
36+
'PSDSCUseVerboseMessageInDSCResource',
37+
'PSShouldProcess',
38+
'PSUseDeclaredVarsMoreThanAssignments',
39+
'PSUsePSCredentialType',
40+
41+
'Measure-*'
42+
)
43+
44+
}

.vscode/settings.json

+27-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,39 @@
11
{
22
"powershell.codeFormatting.openBraceOnSameLine": false,
3-
"powershell.codeFormatting.newLineAfterOpenBrace": false,
3+
"powershell.codeFormatting.newLineAfterOpenBrace": true,
44
"powershell.codeFormatting.newLineAfterCloseBrace": true,
55
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
66
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
77
"powershell.codeFormatting.whitespaceAroundOperator": true,
88
"powershell.codeFormatting.whitespaceAfterSeparator": true,
99
"powershell.codeFormatting.ignoreOneLineBlock": false,
10+
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationAfterEveryPipeline",
1011
"powershell.codeFormatting.preset": "Custom",
12+
"powershell.codeFormatting.alignPropertyValuePairs": true,
1113
"files.trimTrailingWhitespace": true,
1214
"files.insertFinalNewline": true,
13-
"powershell.scriptAnalysis.settingsPath": ".vscode\\analyzersettings.psd1"
15+
"powershell.scriptAnalysis.settingsPath": ".vscode\\analyzersettings.psd1",
16+
"powershell.scriptAnalysis.enable": true,
17+
"files.associations": {
18+
"*.ps1xml": "xml"
19+
},
20+
"cSpell.words": [
21+
"COMPANYNAME",
22+
"ICONURI",
23+
"LICENSEURI",
24+
"PROJECTURI",
25+
"RELEASENOTES",
26+
"buildhelpers",
27+
"endregion",
28+
"gitversion",
29+
"icontains",
30+
"keepachangelog",
31+
"notin",
32+
"pscmdlet",
33+
"steppable"
34+
],
35+
"[markdown]": {
36+
"files.trimTrailingWhitespace": true,
37+
"files.encoding": "utf8"
38+
}
1439
}

.vscode/tasks.json

+125
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
{
2+
"version": "2.0.0",
3+
"_runner": "terminal",
4+
"windows": {
5+
"options": {
6+
"shell": {
7+
"executable": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
8+
"args": [
9+
"-NoProfile",
10+
"-ExecutionPolicy",
11+
"Bypass",
12+
"-Command"
13+
]
14+
}
15+
}
16+
},
17+
"linux": {
18+
"options": {
19+
"shell": {
20+
"executable": "/usr/bin/pwsh",
21+
"args": [
22+
"-NoProfile",
23+
"-Command"
24+
]
25+
}
26+
}
27+
},
28+
"osx": {
29+
"options": {
30+
"shell": {
31+
"executable": "/usr/local/bin/pwsh",
32+
"args": [
33+
"-NoProfile",
34+
"-Command"
35+
]
36+
}
37+
}
38+
},
39+
"tasks": [
40+
{
41+
"label": "build",
42+
"type": "shell",
43+
"command": "&${cwd}/build.ps1",
44+
"args": ["-AutoRestore"],
45+
"presentation": {
46+
"echo": true,
47+
"reveal": "always",
48+
"focus": true,
49+
"panel": "new",
50+
"clear": false
51+
},
52+
"runOptions": {
53+
"runOn": "default"
54+
},
55+
"problemMatcher": [
56+
{
57+
"owner": "powershell",
58+
"fileLocation": [
59+
"absolute"
60+
],
61+
"severity": "error",
62+
"pattern": [
63+
{
64+
"regexp": "^\\s*(\\[-\\]\\s*.*?)(\\d+)ms\\s*$",
65+
"message": 1
66+
},
67+
{
68+
"regexp": "(.*)",
69+
"code": 1
70+
},
71+
{
72+
"regexp": ""
73+
},
74+
{
75+
"regexp": "^.*,\\s*(.*):\\s*line\\s*(\\d+).*",
76+
"file": 1,
77+
"line": 2
78+
}
79+
]
80+
}
81+
]
82+
},
83+
{
84+
"label": "test",
85+
"type": "shell",
86+
"command": "&${cwd}/build.ps1",
87+
"args": ["-AutoRestore","-Tasks","test"],
88+
"presentation": {
89+
"echo": true,
90+
"reveal": "always",
91+
"focus": true,
92+
"panel": "dedicated",
93+
"showReuseMessage": true,
94+
"clear": false
95+
},
96+
"problemMatcher": [
97+
{
98+
"owner": "powershell",
99+
"fileLocation": [
100+
"absolute"
101+
],
102+
"severity": "error",
103+
"pattern": [
104+
{
105+
"regexp": "^\\s*(\\[-\\]\\s*.*?)(\\d+)ms\\s*$",
106+
"message": 1
107+
},
108+
{
109+
"regexp": "(.*)",
110+
"code": 1
111+
},
112+
{
113+
"regexp": ""
114+
},
115+
{
116+
"regexp": "^.*,\\s*(.*):\\s*line\\s*(\\d+).*",
117+
"file": 1,
118+
"line": 2
119+
}
120+
]
121+
}
122+
]
123+
}
124+
]
125+
}

0 commit comments

Comments
 (0)