Commit f04a481
authored
🩹 [Patch]: Framework artifacts stay under .PSModule (#540)
Framework-generated artifacts now stay under the consumer repository's
`.PSModule` directory instead of root-level `outputs`, `_site`,
`TestResult`, and `CodeCoverage` paths. Invoke-Pester keeps its internal
`.temp` state at `[System.IO.Path]::GetTempPath()/Invoke-Pester`,
outside the consumer worktree.
## Changed: Framework artifact directory
- Built modules use `.PSModule/module`.
- Generated documentation uses `.PSModule/docs`.
- Zensical workspace and GitHub Pages payload use `.PSModule/site`, with
generated HTML at `.PSModule/site/_site`.
- Framework tests write reports to
`<WorkingDirectory>/.PSModule/TestResult/<suite>-TestResult-Report.xml`
and
`<WorkingDirectory>/.PSModule/CodeCoverage/<suite>-CodeCoverage-Report.xml`
through Invoke-Pester's existing report-path inputs.
- Build, test, lint, publish, release, artifact download/upload, Pages,
action defaults, implementation tests, fixtures, and references use the
new locations.
- Aggregation-runner-only `CodeCoverage/`, `CodeCoverage-MissedPaths/`,
`TestResults/`, and `super-linter-output/` locations are unchanged.
## Adopting this release
No consumer configuration, code, or invocation changes are required.
`workflow.yml` is the supported consumer contract; component actions,
nested reusable workflows, and their intermediate artifact paths are
internal implementation details.
## Release impact
- Effective decision: `release:patch`.
- Semantic effect: Patch release; the supported `workflow.yml` contract
is unchanged.
## Invoke-Pester compatibility
This change uses Invoke-Pester v5.1.1, pinned to its immutable release
commit `c5494aba3c07d7bfd81bdbbc9f301e8fa4a729fb`. The release includes
PSModule/Invoke-Pester#78, which honors the existing
`TestResult_OutputPath` and `CodeCoverage_OutputPath` action inputs used
for the `.PSModule` report paths.
## Technical details
- Fixture assertions require generated documentation under
`.PSModule/docs`.
- Focused Pester tests cover publish and release paths.
- A focused site experiment verifies `.PSModule/site/_site` is produced
without legacy root artifact directories.
- Changed workflow YAML files parse successfully.1 parent 3505ca4 commit f04a481
30 files changed
Lines changed: 67 additions & 79 deletions
File tree
- .github
- actions
- Build-PSModule
- src/helpers/Build
- Build-ZensicalSite
- src
- Document-PSModule/src
- Inject-SiteScripts
- src
- Publish-PSModule
- tests
- Release-PSModule
- tests
- Structure-Site
- src
- Test-PSModule
- src
- plugin/psmodule/skills/psmodule-pester-migration
- workflows
- docs/content
- guides
- reference
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 3 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 20 | | |
28 | 21 | | |
29 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 41 | | |
49 | 42 | | |
50 | 43 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments