-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'update-testing' into 'main'
Improve Testing and Add ISSUE_TEMPLATEs See merge request wmarshall/SecretManagement.Warden!17
- Loading branch information
Showing
8 changed files
with
126 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Bug report 🐛 | ||
description: Report errors or unexpected behavior 🤔 | ||
labels: Needs-Triage | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: Write a summary of the issue. | ||
- type: checkboxes | ||
attributes: | ||
label: Prerequisites | ||
options: | ||
- label: Write a descriptive title. | ||
required: true | ||
- label: Make sure you are able to repro it on the [latest released version](https://github.com/marshallwp/SecretManagement.Warden/tags) | ||
required: true | ||
- label: Search the existing issues. | ||
required: true | ||
- label: Refer to [Known Issues](https://github.com/marshallwp/SecretManagement.Warden#known-issues). | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Steps to reproduce | ||
description: > | ||
List of steps, sample code, failing test or link to a project that reproduces the behavior. | ||
Make sure you place a stack trace inside a code (```) block to avoid linking unrelated issues. | ||
placeholder: > | ||
I am experiencing a problem with X. | ||
I think Y should be happening but Z is actually happening. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Expected behavior | ||
render: console | ||
placeholder: | | ||
PS> 2 + 2 | ||
4 | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Actual behavior | ||
render: console | ||
placeholder: | | ||
PS> 2 + 2 | ||
5 | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Error details | ||
description: Paste verbatim output from `Get-Error` if PowerShell return an error. | ||
render: console | ||
placeholder: PS> Get-Error | ||
- type: textarea | ||
attributes: | ||
label: Environment data | ||
description: Paste verbatim output from `$PSVersionTable` below. | ||
render: powershell | ||
placeholder: PS> $PSVersionTable | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Visuals | ||
description: > | ||
Please upload images or animations that can be used to reproduce issues in the area below. | ||
Try the [Steps Recorder](https://support.microsoft.com/en-us/windows/record-steps-to-reproduce-a-problem-46582a9b-620f-2e36-00c9-04e25d784e47) | ||
on Windows or [Screenshot](https://support.apple.com/en-us/HT208721) on macOS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Feature Request / Idea 🚀 | ||
description: Suggest a new feature or improvement (this does not mean you have to implement it) | ||
labels: [Issue-Enhancement, Needs-Triage] | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Summary of the new feature / enhancement | ||
description: > | ||
A clear and concise description of what the problem is that the | ||
new feature would solve. Try formulating it in user story style | ||
(if applicable). | ||
placeholder: "'As a user I want X so that Y...' with X being the being the action and Y being the value of the action." | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Proposed technical implementation details (optional) | ||
placeholder: > | ||
A clear and concise description of what you want to happen. | ||
Consider providing an example PowerShell experience with expected result. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: PowerShell Support | ||
url: https://github.com/PowerShell/PowerShell/blob/master/.github/SUPPORT.md | ||
about: PowerShell Support Questions/Help | ||
- name: Microsoft.PowerShell.SecretManagement Issues | ||
url: https://github.com/PowerShell/SecretManagement/issues/new/choose | ||
about: Report any issues with the base module here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,7 +113,12 @@ jobs: | |
# Run Pester tests | ||
$config = New-PesterConfiguration | ||
$config.Run.Path = "." | ||
$config.CodeCoverage.Enabled = $true | ||
$config.CodeCoverage.Enabled = $IsLinux | ||
$config.CodeCoverage.Path = @( | ||
"./SecretManagement.Warden.Extension/classes", | ||
"./SecretManagement.Warden.Extension/private", | ||
"./SecretManagement.Warden.Extension/public" | ||
) | ||
$config.CodeCoverage.OutputPath = "coverage.xml" | ||
$config.TestResult.Enabled = $true | ||
$config.TestResult.OutputPath = "Unit.Tests.xml" | ||
|
@@ -129,18 +134,21 @@ jobs: | |
retention-days: 7 | ||
|
||
- name: Setup .NET Core # Required to execute ReportGenerator | ||
if: runner.os == 'Linux' | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.x | ||
dotnet-quality: 'ga' | ||
|
||
- name: ReportGenerator | ||
if: runner.os == 'Linux' | ||
uses: danielpalme/[email protected] | ||
with: | ||
reports: coverage.xml | ||
targetdir: . | ||
reporttypes: MarkdownSummaryGithub | ||
|
||
- name: Publish Coverage In Build Summary | ||
if: runner.os == 'Linux' | ||
shell: bash | ||
run: cat ./SummaryGithub.md >> $GITHUB_STEP_SUMMARY # Adjust path and filename if necessary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters