[bfops/move-upgrade-version]: cargo ci version-upgrade-check

This commit is contained in:
Zeke Foppa
2026-05-04 17:08:21 -07:00
parent 88a77d95e9
commit e2465b407a
3 changed files with 33 additions and 1 deletions
+1 -1
View File
@@ -1246,6 +1246,6 @@ jobs:
with:
run_install: true
- name: Verify that upgrade-version still works
run: cargo bump-versions 123.456.789 --rust-and-cli --csharp --typescript --cpp --accept-snapshots
run: cargo ci version-upgrade-check
- name: Show diff
run: git diff HEAD
+11
View File
@@ -217,6 +217,17 @@ Usage: typescript-test
- `--help`: Print help
### `version-upgrade-check`
**Usage:**
```bash
Usage: version-upgrade-check
```
**Options:**
- `--help`: Print help
### `docs`
**Usage:**
+21
View File
@@ -276,6 +276,8 @@ enum CiCmd {
PublishChecks,
/// Runs TypeScript workspace tests and template build checks.
TypescriptTest,
/// Verifies that the repository version upgrade tool still works.
VersionUpgradeCheck,
/// Builds the docs site.
Docs,
}
@@ -443,6 +445,21 @@ fn run_docs_build() -> Result<()> {
Ok(())
}
fn run_version_upgrade_check() -> Result<()> {
cmd!(
"cargo",
"bump-versions",
"123.456.789",
"--rust-and-cli",
"--csharp",
"--typescript",
"--cpp",
"--accept-snapshots"
)
.run()?;
Ok(())
}
fn main() -> Result<()> {
env_logger::init();
@@ -711,6 +728,10 @@ fn main() -> Result<()> {
run_typescript_tests()?;
}
Some(CiCmd::VersionUpgradeCheck) => {
run_version_upgrade_check()?;
}
Some(CiCmd::Docs) => {
run_docs_build()?;
}