Update cli-minikit.yml - #92
Merged
Merged
Conversation
b5970f8 Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>
|
Note Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported. |
This comment was marked as resolved.
This comment was marked as resolved.
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR cleans up the cli-minikit GitHub Actions workflow by resolving merge conflict markers, standardizing it on the minikit variant of the CLI, and updating test project naming to match the minikit app created by the CLI. Sequence diagram for cli-minikit GitHub Actions workflow on PRsequenceDiagram
actor Developer
participant GitHub
participant Workflow_cli_minikit as Workflow_cli_minikit
participant Job_test as Job_test
participant Step_Run_CLI as Step_Run_CLI
participant Minikit_CLI as Minikit_CLI
participant Minikit_App as Minikit_App
Developer->>GitHub: Open or update pull_request to main
GitHub->>Workflow_cli_minikit: Trigger cli_build_install_minikit
Workflow_cli_minikit->>Job_test: Start job on ubuntu_latest
Job_test->>Job_test: Setup Node.js, checkout repo, install dependencies
Job_test->>Step_Run_CLI: Execute CLI with --mini option
Step_Run_CLI->>Minikit_CLI: Run create_onchain CLI with mini flag
Minikit_CLI-->>Minikit_App: Scaffold my_minikit_app in test_project
Job_test->>Minikit_App: npm install and build in my_minikit_app
Minikit_App-->>Job_test: Build succeeds
Job_test-->>Workflow_cli_minikit: Job completes
Flow diagram for cli-minikit GitHub Actions workflow structureflowchart TD
A[cli_build_install_minikit workflow
on pull_request to main
paths packages/create_onchain] --> B[Test job ubuntu_latest]
B --> C[Matrix: node_version = 18, 20]
C --> D[Checkout repository]
D --> E[Setup Node.js]
E --> F[Install root dependencies
npm install]
F --> G[Build CLI package
npm run build in packages/create_onchain]
G --> H[Create test project directory
mkdir test-project]
H --> I[Run create_onchain CLI with mini flag
cli.js --mini
piped scripted input]
I --> J[Install dependencies in
./test-project/my-minikit-app]
J --> K[Build minikit test app
npm run build]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The workflow no longer triggers on or special-cases the
alphabranch; confirm that removing thealphabranch from bothon.pull_request.branchesand theif: github.head_ref != 'alpha'guard is intentional for your branching strategy. - The
working-directorywas updated to./test-project/my-minikit-app; verify that this matches the actual directory name generated by the--miniCLI path so the install/build steps run in the correct location. - The scripted CLI input sequence was adjusted for the
--miniflag; ensure the sequence still aligns with the current prompts of thecreate-onchainCLI to avoid the workflow hanging or misconfiguring the test project.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The workflow no longer triggers on or special-cases the `alpha` branch; confirm that removing the `alpha` branch from both `on.pull_request.branches` and the `if: github.head_ref != 'alpha'` guard is intentional for your branching strategy.
- The `working-directory` was updated to `./test-project/my-minikit-app`; verify that this matches the actual directory name generated by the `--mini` CLI path so the install/build steps run in the correct location.
- The scripted CLI input sequence was adjusted for the `--mini` flag; ensure the sequence still aligns with the current prompts of the `create-onchain` CLI to avoid the workflow hanging or misconfiguring the test project.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
b5970f8
What changed? Why?
Notes to reviewers
How has it been tested?
Summary by Sourcery
Resolve merge artifacts in the cli minikit CI workflow and align it with the current minikit app template.
CI: