Skip to content

Commit 21ca984

Browse files
authored
ci: print subcommands help after build (#535)
<!-- CURSOR_SUMMARY --> > [!NOTE] > **Low Risk** > Low risk CI-only change that adds extra post-build commands; main impact is slightly longer workflows and potential noise/failures if CLI help output breaks. > > **Overview** > Adds a `print-after-build` input to the `build-upstream` composite action and, when enabled, runs `pnpm vite -h` plus help output for key subcommands (`run`, `lint`, `test`, `build`, `fmt`) after the build. > > Enables this flag in `upgrade-deps.yml` and updates the Claude failure-recovery prompt to explicitly validate the same CLI help commands. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 0570770. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent ea6f819 commit 21ca984

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

.github/actions/build-upstream/action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inputs:
44
target:
55
description: 'The target platform'
66
required: true
7+
print-after-build:
8+
description: 'Print the output after the build'
9+
required: false
710

811
runs:
912
using: 'composite'
@@ -82,6 +85,17 @@ runs:
8285
env:
8386
DEBUG: napi:*
8487

88+
- name: Print output after build
89+
shell: bash
90+
if: inputs.print-after-build == 'true'
91+
run: |
92+
pnpm vite -h
93+
pnpm vite run -h
94+
pnpm vite lint -h
95+
pnpm vite test -h
96+
pnpm vite build -h
97+
pnpm vite fmt -h
98+
8599
- name: Save NAPI binding cache
86100
if: steps.cache-restore.outputs.cache-hit != 'true'
87101
uses: actions/cache/save@94b89442628ad1d101e352b7ee38f30e1bef108e # v5

.github/workflows/upgrade-deps.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
continue-on-error: true
5858
with:
5959
target: x86_64-unknown-linux-gnu
60+
print-after-build: 'true'
6061
env:
6162
RELEASE_BUILD: 'true'
6263

@@ -85,6 +86,13 @@ jobs:
8586
- If deps in our `Cargo.toml` need to be upgraded, you can refer to the `./.claude/agents/cargo-workspace-merger.md`
8687
- If `Cargo.toml` has been modified, you need to run `cargo shear` to ensure there is nothing wrong with our dependencies.
8788
- Run `cargo check --all-targets --all-features` to ensure everything works fine if any Rust related codes are modified.
89+
- Run the following commands to ensure everything works fine:
90+
vite -h
91+
vite run -h
92+
vite lint -h
93+
vite test -h
94+
vite build -h
95+
vite fmt -h
8896
8997
Help me fix the errors in `build-upstream` steps, no need to commit changes after your fixing.
9098
claude_args: |

0 commit comments

Comments
 (0)