Skip to content

Commit 63a5fe7

Browse files
committed
2nd pass. Ready for initial publish
1 parent 35da8e5 commit 63a5fe7

26 files changed

+363
-300
lines changed

.devcontainer/devcontainer.json

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11
{
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'"
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": [
23+
"ms-vscode.powershell",
24+
"davidanson.vscode-markdownlint"
25+
]
26+
}
27+
},
28+
"postCreateCommand": "pwsh -c './build.ps1 -Task Init -Bootstrap'"
2629
}
27-

.github/CONTRIBUTING.md

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

.github/ISSUE_TEMPLATE.md

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

.github/PULL_REQUEST_TEMPLATE.md

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

.github/workflows/CI.yaml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
name: CI
2-
on: [push, pull_request]
2+
on:
3+
pull_request:
4+
workflow_dispatch:
5+
permissions:
6+
checks: write
7+
pull-requests: write
38
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-
9+
ci:
10+
uses: HeyItsGilbert/.github/.github/workflows/ModuleCI.yml@main

.github/workflows/Publish.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Publish Module
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
jobs:
8+
build:
9+
uses: HeyItsGilbert/.github/.github/workflows/PublishModule.yml@main
10+
secrets: inherit

.github/workflows/pages.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Publish docs via GitHub Pages
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
build:
9+
name: Deploy docs
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout main
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 2
16+
- shell: pwsh
17+
# Give an id to the step, so we can reference it later
18+
id: check_file_changed
19+
run: |
20+
# Diff HEAD with the previous commit
21+
$diff = git diff --name-only HEAD^ HEAD
22+
23+
# Check if a file under docs/ or with the .md extension has changed (added, modified, deleted)
24+
$SourceDiff = $diff | Where-Object { $_ -match '^docs/' -or $_ -match '.md$' }
25+
$HasDiff = $SourceDiff.Length -gt 0
26+
27+
# Set the output named "docs_changed"
28+
Write-Host "::set-output name=docs_changed::$HasDiff"
29+
30+
- name: Copy readme
31+
shell: pwsh
32+
run: |
33+
Copy-Item README.md docs/index.md
34+
- name: Deploy docs
35+
uses: mhausenblas/mkdocs-deploy-gh-pages@master
36+
if: steps.check_file_changed.outputs.docs_changed == 'True' || ${{ github.event_name == 'workflow_dispatch' }}
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
REQUIREMENTS: docs/requirements.txt

.vscode/launch.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "PowerShell: Debug Tests",
9+
"type": "PowerShell",
10+
"request": "launch",
11+
"script": "./build.ps1 -Task Test",
12+
"args": [],
13+
"createTemporaryIntegratedConsole": false
14+
},
15+
{
16+
"name": "PowerShell: Debug Tests (Temp Console)",
17+
"type": "PowerShell",
18+
"request": "launch",
19+
"script": "./build.ps1 -Task Test",
20+
"args": [],
21+
"createTemporaryIntegratedConsole": true
22+
},
23+
{
24+
"name": "PowerShell: Load Source Module (Temp Console)",
25+
"type": "PowerShell",
26+
"request": "launch",
27+
"script": "./build.ps1 -Task Init && Import-Module $env:BHPSModuleManifest",
28+
"args": [],
29+
"createTemporaryIntegratedConsole": true
30+
}
31+
]
32+
}

.vscode/tasks.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@
7878
"label": "Publish",
7979
"type": "shell",
8080
"command": "${cwd}/build.ps1 -Task Publish -Verbose"
81+
},
82+
{
83+
"label": "Bootstrap",
84+
"type": "shell",
85+
"command": "${cwd}/build.ps1 -Task Init -Bootstrap -Verbose",
86+
"problemMatcher": []
8187
}
8288
]
8389
}

PesterExplorer/PesterExplorer.psd1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@
5454
RequiredModules = @(
5555
@{
5656
ModuleName = 'Pester'
57-
Version = '5.0.0'
57+
ModuleVersion = '5.0.0'
5858
},
5959
@{
60-
ModuleName = 'Spectre.Console'
61-
Version = '2.3.0'
60+
ModuleName = 'PwshSpectreConsole'
61+
ModuleVersion = '2.3.0'
6262
}
6363
)
6464

@@ -122,7 +122,7 @@
122122
ProjectUri = 'https://github.com/HeyItsGilbert/PesterExplorer'
123123

124124
# A URL to an icon representing this module.
125-
# IconUri = 'https://raw.githubusercontent.com/HeyItsGilbert/PesterExplorer/main/images/icon.png'
125+
IconUri = 'https://raw.githubusercontent.com/HeyItsGilbert/PesterExplorer/main/images/icon.png'
126126

127127
# ReleaseNotes of this module
128128
ReleaseNotes = 'https://github.com/HeyItsGilbert/PesterExplorer/blob/main/CHANGELOG.md'

0 commit comments

Comments
 (0)