Skip to content

fix: Harden CI/CD workflows and stabilize pipeline#7

Draft
google-labs-jules[bot] wants to merge 2 commits intomainfrom
feature/add-healthz-endpoint
Draft

fix: Harden CI/CD workflows and stabilize pipeline#7
google-labs-jules[bot] wants to merge 2 commits intomainfrom
feature/add-healthz-endpoint

Conversation

@google-labs-jules
Copy link
Contributor

This PR hardens the CI/CD workflows to ensure a stable and reliable pipeline. It locks the Node.js version, uses deterministic package installation, disables Wrangler analytics, pins the Wrangler version, and ensures the deploy job only runs on pushes to main with the necessary secrets. It also adds a minimal wrangler.toml file and updates the package.json with lint and typecheck scripts.


PR created automatically by Jules for task 526540209601752806

This commit hardens the CI/CD workflows to ensure a stable and reliable pipeline. The following changes were made:

-   **CI Workflow (`ci.yml`):**
    -   Locked the Node.js version to 20.
    -   Set `WRANGLER_SEND_ANALYTICS` to `false`.
    -   Use `npm ci || npm i` for deterministic package installation.
-   **Deploy Workflow (`deploy.yml`):**
    -   Locked the Node.js version to 20.
    -   Pinned the `wrangler` version to `3`.
    -   Set `WRANGLER_SEND_ANALYTICS` to `false`.
    -   Ensured the deploy job only runs on pushes to `main` when `CF_API_TOKEN` and `CF_ACCOUNT_ID` secrets are present.
    -   Added `--no-bundle` flag to deploy command.
-   **`wrangler.toml`:**
    -   Created a minimal `wrangler.toml` file for Cloudflare Worker configuration.
-   **`package.json`:**
    -   Added `lint` and `typecheck` scripts.
    -   Added an `engines` field to specify the Node.js version.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

This commit improves the repository's hygiene by:

-   Adding baseline dotfiles: `.gitignore`, `.editorconfig`, and `LICENSE`.
-   Removing dead files and directories.
-   Updating the `README.md` file with a project description and an overview of the repository layout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants