File tree Expand file tree Collapse file tree 7 files changed +65
-94
lines changed
Expand file tree Collapse file tree 7 files changed +65
-94
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 1414 - labeled
1515
1616concurrency :
17- group : ${{ github.workflow }}
17+ group : ${{ github.workflow }}-${{ github.ref }}
18+ cancel-in-progress : true
1819
1920permissions :
2021 contents : write
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments