Skip to content

Commit a56c70e

Browse files
Merge branch 'main' into audit-process-workflows
2 parents 581bf0b + 0e45a1c commit a56c70e

25 files changed

Lines changed: 1130 additions & 48 deletions

File tree

.github/actions/Get-PesterCodeCoverage/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,12 @@ Summary:
7777

7878
## Requirements
7979

80-
1. **Pester Code Coverage Reports**
80+
1. **Pester 6.1 Code Coverage Reports**
81+
8182
Preceding steps must generate JSON coverage reports named `*-CodeCoverage*.json`
83+
from the Pester 6.1 `CodeCoverage` result object. The action consumes
84+
`CoveragePercent`, `CoveragePercentTarget`, `CommandsMissed`,
85+
`CommandsExecuted`, and `FilesAnalyzed` plus their count properties.
8286

8387
2. **GitHub CLI**
8488
The action uses `gh run download` to fetch artifacts from the current workflow run

.github/actions/Test-PSModule/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ inputs:
8585
required: false
8686
CodeCoverage_OutputFormat:
8787
description: |
88-
Format to use for code coverage report. Possible values: JaCoCo, CoverageGutters, Cobertura
88+
Format to use for code coverage report. Possible values in Pester 6.1: JaCoCo or Cobertura.
8989
required: false
9090
CodeCoverage_OutputPath:
9191
description: |
@@ -113,7 +113,7 @@ inputs:
113113
required: false
114114
CodeCoverage_UseBreakpoints:
115115
description: |
116-
EXPERIMENTAL: When false, use Profiler based tracer to do CodeCoverage instead of using breakpoints.
116+
When false, use the profiler-based tracer instead of breakpoints for code coverage.
117117
required: false
118118
CodeCoverage_SingleHitBreakpoints:
119119
description: |
@@ -288,6 +288,7 @@ runs:
288288
with:
289289
Debug: ${{ inputs.Debug }}
290290
Verbose: ${{ inputs.Verbose }}
291+
Version: '[6.1.0,7.0.0)'
291292
GitHubVersion: ${{ inputs.Version }}
292293
GitHubPrerelease: ${{ inputs.Prerelease }}
293294
WorkingDirectory: ${{ inputs.WorkingDirectory }}

.github/actions/Test-PSModule/src/tests/Module/PSModule/PSModule.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if ($hasClassExporter) {
4343

4444

4545
# Run-phase setup — recompute from $Path so that It/Context blocks can use these variables.
46-
# Pester v5 Discovery and Run are separate executions. The script-scope variables above drive
46+
# Pester 6 Discovery and Run are separate executions. The script-scope variables above drive
4747
# -Skip and -ForEach during Discovery. This BeforeAll recomputes the same values for the Run
4848
# phase, where It blocks actually execute. The duplication is intentional and required.
4949
BeforeAll {

.github/plugin/README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# PSModule process plugin
2+
3+
This repository hosts the `psmodule` GitHub Copilot CLI marketplace and its
4+
`psmodule` plugin. The marketplace and plugin are owned and released
5+
with the PSModule process.
6+
7+
## Install through the marketplace
8+
9+
Register this repository's marketplace and install the plugin:
10+
11+
```console
12+
copilot plugin marketplace add https://github.com/PSModule/Process-PSModule.git
13+
copilot plugin install psmodule
14+
```
15+
16+
## Install directly
17+
18+
Install the plugin directly from this repository:
19+
20+
```console
21+
copilot plugin install PSModule/Process-PSModule:.github/plugin/psmodule
22+
```
23+
24+
The plugin provides the
25+
[`psmodule-pester-migration`](./psmodule/skills/psmodule-pester-migration/SKILL.md)
26+
skill for migrating every Pester test set in a PSModule repository to Pester
27+
6.1.0, and the
28+
[`psmodule-v8-upgrade`](./psmodule/skills/psmodule-v8-upgrade/SKILL.md)
29+
skill for upgrading Process-PSModule consumer repositories to framework v8.
30+
It also provides
31+
[`psmodule-zensical-migration`](./psmodule/skills/psmodule-zensical-migration/SKILL.md)
32+
for migrating legacy MkDocs sites to the Process-PSModule Zensical design.
33+
Verify the installation with:
34+
35+
```console
36+
copilot plugin list
37+
/skills list
38+
```
39+
40+
The marketplace catalog is in [`marketplace.json`](./marketplace.json), and
41+
plugin metadata is in
42+
[`plugin.json`](./psmodule/plugin.json).

.github/plugin/marketplace.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://agent-plugins.org/schemas/1.0.0/marketplace.schema.json",
3+
"name": "psmodule",
4+
"owner": {
5+
"name": "PSModule"
6+
},
7+
"metadata": {
8+
"description": "Agent plugins for the PSModule repository process.",
9+
"version": "1.0.0"
10+
},
11+
"plugins": [
12+
{
13+
"name": "psmodule",
14+
"description": "PSModule process guidance and reusable skills for PowerShell module repositories.",
15+
"version": "1.0.0",
16+
"source": ".github/plugin/psmodule"
17+
}
18+
]
19+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3+
"name": "psmodule",
4+
"description": "PSModule process guidance and reusable skills for PowerShell module repositories.",
5+
"version": "1.0.0",
6+
"author": {
7+
"name": "PSModule",
8+
"url": "https://github.com/PSModule"
9+
},
10+
"homepage": "https://psmodule.io/docs/",
11+
"repository": "https://github.com/PSModule/Process-PSModule",
12+
"license": "MIT",
13+
"keywords": [
14+
"powershell",
15+
"psmodule",
16+
"pester",
17+
"testing",
18+
"github-actions"
19+
],
20+
"skills": "skills/"
21+
}

0 commit comments

Comments
 (0)