Skip to content

Commit 5ca1074

Browse files
align
1 parent a55e996 commit 5ca1074

File tree

7 files changed

+65
-94
lines changed

7 files changed

+65
-94
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# @global-owner1 and @global-owner2 will be requested for
77
# review when someone opens a pull request.
88
* @PSModule/module-maintainers
9-
* @PSModule/framework-maintainers
109

1110
# Order is important; the last matching pattern takes the most
1211
# precedence. When someone opens a pull request that only

.github/linters/.markdown-lint.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
###########################
2+
## Markdown Linter rules ##
3+
###########################
4+
5+
# Linter rules doc:
6+
# - https://github.com/DavidAnson/markdownlint
7+
8+
###############
9+
# Rules by id #
10+
###############
11+
MD004: false # Unordered list style
12+
MD007:
13+
indent: 2 # Unordered list indentation
14+
MD013:
15+
line_length: 808 # Line length
16+
MD026:
17+
punctuation: ".,;:!。,;:" # List of not allowed
18+
MD029: false # Ordered list item prefix
19+
MD033: false # Allow inline HTML
20+
MD036: false # Emphasis used instead of a heading
21+
22+
#################
23+
# Rules by tags #
24+
#################
25+
blank_lines: false # Error on blank lines

.github/workflows/Linter.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Linter
2+
3+
run-name: "Linter - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
4+
5+
on: [pull_request]
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
permissions:
12+
contents: read
13+
packages: read
14+
statuses: write
15+
16+
jobs:
17+
Lint:
18+
name: Lint code base
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout repo
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Lint code base
27+
uses: super-linter/super-linter@latest
28+
env:
29+
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/Process-PSModule.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ on:
1414
- labeled
1515

1616
concurrency:
17-
group: ${{ github.workflow }}
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
1819

1920
permissions:
2021
contents: write

.vscode/extensions.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 0 additions & 84 deletions
This file was deleted.

tests/PSModule.Tests.ps1

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
Describe 'PSModule' {
1+
[CmdletBinding()]
2+
Param(
3+
# Path to the module to test.
4+
[Parameter()]
5+
[string] $Path
6+
)
7+
8+
Describe 'PSModule' {
29
Context 'Module' {
310
It 'The module should be available' {
411
Get-Module -Name 'PSModule' -ListAvailable | Should -Not -BeNullOrEmpty
512
Write-Verbose (Get-Module -Name 'PSModule' -ListAvailable | Out-String) -Verbose
613
}
714
It 'The module should be importable' {
8-
{ Import-Module -Name 'PSModule' -Verbose -Force } | Should -Not -Throw
15+
{ Import-Module -Name 'PSModule' -Verbose -RequiredVersion 999.0.0 -Force } | Should -Not -Throw
916
}
1017
}
1118

0 commit comments

Comments
 (0)