-
Notifications
You must be signed in to change notification settings - Fork 0
🩹 [Patch]: Update tests to perform a linter evaluation #20
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,9 @@ | |
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: {} | ||
| permissions: | ||
| contents: read # to checkout the repo | ||
| statuses: write # to create commit status | ||
|
|
||
| jobs: | ||
| ActionTestDefault: | ||
|
|
@@ -24,6 +26,9 @@ | |
| steps: | ||
| - name: Checkout repo | ||
| uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Upload module artifact | ||
| uses: actions/upload-artifact@v4 | ||
|
|
@@ -38,3 +43,21 @@ | |
| with: | ||
| Name: PSModuleTest | ||
| WorkingDirectory: tests/srcTestRepo | ||
|
|
||
| - name: Get changes | ||
| uses: PSModule/GitHub-Script@v1 | ||
|
Check warning on line 48 in .github/workflows/Action-Test.yml
|
||
| with: | ||
| Script: | | ||
| LogGroup "List files" { | ||
| Get-ChildItem -Recurse -File | Select-Object -ExpandProperty FullName | Sort-Object | ||
| } | ||
| LogGroup "Commit changes" { | ||
| git add tests/srcTestRepo/outputs/docs/ | ||
| git commit -m "Update documentation" | ||
| } | ||
|
Comment on lines
+54
to
+57
|
||
|
|
||
| - name: Lint documentation | ||
| uses: super-linter/super-linter/slim@7bba2eeb89d01dc9bfd93c497477a57e72c83240 # v8.2.0 | ||
| env: | ||
| GITHUB_TOKEN: ${{ github.token }} | ||
| VALIDATE_MARKDOWN: true | ||
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -314,6 +314,12 @@ function Set-PSModuleTest { | |||||||||||
| Test-PSModule -Name 'World' | ||||||||||||
|
|
||||||||||||
| "Hello, World!" | ||||||||||||
|
|
||||||||||||
| .NOTES | ||||||||||||
| Controls: | ||||||||||||
| - :q : Quit | ||||||||||||
| - :q! : Quit without saving | ||||||||||||
| - :wq : Save and quit | ||||||||||||
|
Comment on lines
+319
to
+322
|
||||||||||||
| Controls: | |
| - :q : Quit | |
| - :q! : Quit without saving | |
| - :wq : Save and quit | |
| This function outputs a greeting message for the specified name. |
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -7,6 +7,12 @@ | |||||||||||
| Test-PSModule -Name 'World' | ||||||||||||
|
|
||||||||||||
| "Hello, World!" | ||||||||||||
|
|
||||||||||||
| .NOTES | ||||||||||||
| Controls: | ||||||||||||
| - :q : Quit | ||||||||||||
| - :q! : Quit without saving | ||||||||||||
| - :wq : Save and quit | ||||||||||||
|
Comment on lines
+12
to
+15
|
||||||||||||
| Controls: | |
| - :q : Quit | |
| - :q! : Quit without saving | |
| - :wq : Save and quit | |
| This function outputs a greeting message for the specified module name. Add additional implementation notes here as needed. |
Uh oh!
There was an error while loading. Please reload this page.