Commit 21fff2b
⚙️ [Maintenance]: Validate prerelease version format in test workflow (#20)
The prerelease test verification now additionally asserts that the
installed version string contains a prerelease identifier (`-preview`,
`-rc`, `-alpha`, `-beta`), ensuring the test never silently passes when
falling back to a stable build.
- Fixes #18
## Prerelease version format validation
After verifying that the installed version matches the resolved version
(existing behaviour), the test now performs an additional regex check
for prerelease matrix entries:
```powershell
$installed -notmatch '-(preview|rc|alpha|beta)\.'
```
This catches scenarios where the prerelease resolution might
accidentally return a stable version string, or where the install falls
back to stable without error.
Stable (`latest`) and pinned version tests are unaffected — they
continue to use exact-match comparison only.
---------
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>1 parent 2751f09 commit 21fff2b
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
0 commit comments