Skip to content

Commit 35da8e5

Browse files
committed
first commit
0 parents  commit 35da8e5

38 files changed

+1540
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#-------------------------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
4+
#-------------------------------------------------------------------------------------------------------------
5+
6+
FROM mcr.microsoft.com/powershell:latest
7+
8+
# This Dockerfile adds a non-root user with sudo access. Use the "remoteUser"
9+
# property in devcontainer.json to use it. On Linux, the container user's GID/UIDs
10+
# will be updated to match your local UID/GID (when using the dockerFile property).
11+
# See https://aka.ms/vscode-remote/containers/non-root-user for details.
12+
ARG USERNAME=vscode
13+
ARG USER_UID=1000
14+
ARG USER_GID=$USER_UID
15+
16+
# install git iproute2, process tools
17+
RUN apt-get update && apt-get -y install git openssh-client less iproute2 procps \
18+
# Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.
19+
&& groupadd --gid $USER_GID $USERNAME \
20+
&& useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME \
21+
# [Optional] Add sudo support for the non-root user
22+
&& apt-get install -y sudo \
23+
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME\
24+
&& chmod 0440 /etc/sudoers.d/$USERNAME \
25+
#
26+
# Clean up
27+
&& apt-get autoremove -y \
28+
&& apt-get clean -y \
29+
&& rm -rf /var/lib/apt/lists/*
30+

.devcontainer/devcontainer.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "PowerShell",
3+
"dockerFile": "Dockerfile",
4+
"customizations": {
5+
"vscode": {
6+
"settings": {
7+
"terminal.integrated.profiles.linux": {
8+
"bash": {
9+
"path": "usr/bin/bash",
10+
"icon": "terminal-bash"
11+
},
12+
"zsh": {
13+
"path": "usr/bin/zsh"
14+
},
15+
"pwsh": {
16+
"path": "/usr/bin/pwsh",
17+
"icon": "terminal-powershell"
18+
}
19+
},
20+
"terminal.integrated.defaultProfile.linux": "pwsh"
21+
},
22+
"extensions": ["ms-vscode.powershell", "davidanson.vscode-markdownlint"]
23+
}
24+
},
25+
"postCreateCommand": "pwsh -c './build.ps1 -Task Init -Bootstrap'"
26+
}
27+

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* -crlf

.github/CONTRIBUTING.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# How to contribute
2+
3+
Contributions to PesterExplorer are highly encouraged and desired.
4+
Below are some guidelines that will help make the process as smooth as possible.
5+
6+
## Getting Started
7+
8+
- Make sure you have a [GitHub account](https://github.com/signup/free)
9+
- Submit a new issue, assuming one does not already exist.
10+
- Clearly describe the issue including steps to reproduce when it is a bug.
11+
- Make sure you fill in the earliest version that you know has the issue.
12+
- Fork the repository on GitHub
13+
14+
## Suggesting Enhancements
15+
16+
I want to know what you think is missing from PesterExplorer and how it can be made better.
17+
18+
- When submitting an issue for an enhancement, please be as clear as possible about why you think the enhancement is needed and what the benefit of it would be.
19+
20+
## Making Changes
21+
22+
- From your fork of the repository, create a topic branch where work on your change will take place.
23+
- To quickly create a topic branch based on master; `git checkout -b my_contribution master`.
24+
Please avoid working directly on the `master` branch.
25+
- Make commits of logical units.
26+
- Check for unnecessary whitespace with `git diff --check` before committing.
27+
- Please follow the prevailing code conventions in the repository.
28+
Differences in style make the code harder to understand for everyone.
29+
- Make sure your commit messages are in the proper format.
30+
31+
```
32+
Add more cowbell to Get-Something.ps1
33+
34+
The functionality of Get-Something would be greatly improved if there was a little
35+
more 'pizzazz' added to it. I propose a cowbell. Adding more cowbell has been
36+
shown in studies to both increase one's mojo, and cement one's status
37+
as a rock legend.
38+
```
39+
40+
- Make sure you have added all the necessary Pester tests for your changes.
41+
- Run _all_ Pester tests in the module to assure nothing else was accidentally broken.
42+
43+
## Documentation
44+
45+
I am infallible and as such my documenation needs no corectoin.
46+
In the highly unlikely event that that is _not_ the case, commits to update or add documentation are highly apprecaited.
47+
48+
## Submitting Changes
49+
50+
- Push your changes to a topic branch in your fork of the repository.
51+
- Submit a pull request to the main repository.
52+
- Once the pull request has been reviewed and accepted, it will be merged with the master branch.
53+
- Celebrate
54+
55+
## Additional Resources
56+
57+
- [General GitHub documentation](https://help.github.com/)
58+
- [GitHub forking documentation](https://guides.github.com/activities/forking/)
59+
- [GitHub pull request documentation](https://help.github.com/send-pull-requests/)
60+
- [GitHub Flow guide](https://guides.github.com/introduction/flow/)
61+
- [GitHub's guide to contributing to open source projects](https://guides.github.com/activities/contributing-to-open-source/)
62+

.github/ISSUE_TEMPLATE.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!--- Provide a general summary of the issue in the Title above -->
2+
3+
## Expected Behavior
4+
<!--- If you're describing a bug, tell us what should happen -->
5+
<!--- If you're suggesting a change/improvement, tell us how it should work -->
6+
7+
## Current Behavior
8+
<!--- If describing a bug, tell us what happens instead of the expected behavior -->
9+
<!--- If suggesting a change/improvement, explain the difference from current behavior -->
10+
11+
## Possible Solution
12+
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
13+
<!--- or ideas how to implement the addition or change -->
14+
15+
## Steps to Reproduce (for bugs)
16+
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
17+
<!--- reproduce this bug. Include code to reproduce, if relevant -->
18+
1.
19+
2.
20+
3.
21+
4.
22+
23+
## Context
24+
<!--- How has this issue affected you? What are you trying to accomplish? -->
25+
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
26+
27+
## Your Environment
28+
<!--- Include as many relevant details about the environment you experienced the bug in -->
29+
* Module version used:
30+
* Operating System and PowerShell version:
31+

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!--- Provide a general summary of your changes in the Title above -->
2+
3+
## Description
4+
<!--- Describe your changes in detail -->
5+
6+
## Related Issue
7+
<!--- This project only accepts pull requests related to open issues -->
8+
<!--- If suggesting a new feature or change, please discuss it in an issue first -->
9+
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
10+
<!--- Please link to the issue here: -->
11+
12+
## Motivation and Context
13+
<!--- Why is this change required? What problem does it solve? -->
14+
15+
## How Has This Been Tested?
16+
<!--- Please describe in detail how you tested your changes. -->
17+
<!--- Include details of your testing environment, and the tests you ran to -->
18+
<!--- see how your change affects other areas of the code, etc. -->
19+
20+
## Screenshots (if appropriate):
21+
22+
## Types of changes
23+
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
24+
- [ ] Bug fix (non-breaking change which fixes an issue)
25+
- [ ] New feature (non-breaking change which adds functionality)
26+
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
27+
28+
## Checklist:
29+
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
30+
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
31+
- [ ] My code follows the code style of this project.
32+
- [ ] My change requires a change to the documentation.
33+
- [ ] I have updated the documentation accordingly.
34+
- [ ] I have read the **CONTRIBUTING** document.
35+
- [ ] I have added tests to cover my changes.
36+
- [ ] All new and existing tests passed.
37+

.github/workflows/CI.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
name: Run Tests
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest, windows-latest, macOS-latest]
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Test
14+
shell: pwsh
15+
run: ./build.ps1 -Task Test -Bootstrap
16+

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Don't check in the Output dir
2+
Output/
3+
4+
scratch/
5+
6+
testResults.xml

.vscode/extensions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"ms-vscode.PowerShell",
6+
"DavidAnson.vscode-markdownlint"
7+
]
8+
}

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"files.trimTrailingWhitespace": true,
3+
"files.insertFinalNewline": true,
4+
"editor.insertSpaces": true,
5+
"editor.tabSize": 4,
6+
"powershell.codeFormatting.preset": "OTBS"
7+
}

0 commit comments

Comments
 (0)