Skip to content

Commit e20f1d4

Browse files
Move the self-test publish trigger to the WithManifest fixture
Keeps the Default fixture at ReleaseType None so it stays available as the fixture that can exercise Cleanup-PSModulePrereleases, which is gated on ReleaseType != Prerelease. Both fixtures call the same workflow.yml, so the Settings to input to environment variable hop is proven identically either way. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 29e2329 commit e20f1d4

2 files changed

Lines changed: 17 additions & 15 deletions

File tree

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
11
Name: PSModuleTest2
22
Linter:
33
Skip: true
4-
Publish:
5-
Module:
6-
# 'Fix' is here so that Process-PSModule's own self-test exercises the publish path. The framework
7-
# repository labels its bugfix pull requests 'Fix', which makes Get-PSModuleSettings resolve
8-
# ReleaseType to 'Prerelease' for this fixture, so Publish-PSModule actually runs and its resolved
9-
# release tag is visible in the workflow log. Publish-Module.yml sets WhatIf whenever the workflow
10-
# runs in PSModule/Process-PSModule, so nothing is published and no release is created.
11-
#
12-
# Never add a label that PSModule/Auto-Release recognises. It matches the literal string 'prerelease'
13-
# with -Contains, which is case-insensitive in PowerShell, and would make this repository create a
14-
# real prerelease release and tag of itself.
15-
#
16-
# This is a stopgap that covers the Settings -> action input -> environment variable hop until the
17-
# end-to-end publish harness in PSModule/Process-PSModule#436 exists.
18-
PrereleaseLabels: 'prerelease, Fix'

tests/srcWithManifestTestRepo/.github/PSModule.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,23 @@ Test:
1212
Publish:
1313
Module:
1414
AutoCleanup: false
15+
# 'Fix' is here so that Process-PSModule's own self-test exercises the publish path. The framework
16+
# repository labels its bugfix pull requests 'Fix', which makes Get-PSModuleSettings resolve
17+
# ReleaseType to 'Prerelease' for this fixture, so Publish-PSModule actually runs and the release tag
18+
# it resolves is visible in the workflow log. Publish-Module.yml sets WhatIf whenever the workflow runs
19+
# in PSModule/Process-PSModule, so nothing is published and no release is created.
20+
#
21+
# Never add a label that PSModule/Auto-Release recognises. It matches the literal string 'prerelease'
22+
# with -Contains, which is case-insensitive in PowerShell, and would make this repository create a
23+
# real prerelease release and tag of itself.
24+
#
25+
# This fixture carries it rather than srcTestRepo so that the Default fixture, which leaves AutoCleanup
26+
# at its default of true, keeps resolving ReleaseType to 'None' and stays available as the fixture that
27+
# can exercise Cleanup-PSModulePrereleases - that step is gated on ReleaseType != 'Prerelease'.
28+
#
29+
# This is a stopgap that covers the Settings -> action input -> environment variable hop until the
30+
# end-to-end publish harness in PSModule/Process-PSModule#436 exists.
31+
PrereleaseLabels: 'prerelease, Fix'
1532
Linter:
1633
env:
1734
VALIDATE_BIOME_FORMAT: false

0 commit comments

Comments
 (0)