Skip to content

ci: add Cloudflare CI pipeline - #212

Draft
fengmk2 wants to merge 4 commits into
mainfrom
ci/cloudflare-ci-pipeline
Draft

fengmk2 wants to merge 4 commits into
mainfrom
ci/cloudflare-ci-pipeline

Conversation

@fengmk2

@fengmk2 fengmk2 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Add a Cloudflare CI pipeline in .cloudflare/ci/. It runs two jobs from test.yml in Cloudflare runners and reports them as GitHub checks. Cloudflare CI is in preview, so this PR is a draft.

Check Commands Same as
cloudflare-ci/build typecheck, check, build, and a compare of dist/ build
cloudflare-ci/unit-tests build, test Unit tests (ubuntu-latest)

The other jobs in test.yml run the action through uses: ./, so they stay on GitHub Actions. This PR does not change any GitHub Actions workflow.

Behavior

  • Runs start manually with Wrangler, because Cloudflare CI has no GitHub push or PR triggers yet. A run on a PR posts both checks and a new PR comment. A run on a commit SHA updates the checks and posts no comment.
  • The checks are not required checks.
  • The pipeline runs as the setup-vp-ci Worker and Workflow in the VoidZero-docs Cloudflare account. The deployed version runs for every branch. A change under .cloudflare/ci/ takes effect only after a deploy from main.
  • A full run takes about 34 seconds. The build runner takes about 15 seconds, and the unit-tests runner takes about 29 seconds.

Runner environment

  • The default runner image has Node.js 24, npm, and Corepack, but no git, jq, or pnpm. GitHub CI uses lts/* from .node-version.
  • The install uses pnpm install --ignore-scripts, because the root prepare script (vp config) fails without git. The repository allows no dependency build scripts, so the flag skips nothing else.
  • The unit-tests runner installs jq with apt-get, because src/gitlab/workflow.test.ts runs the GitLab E2E workflow script, which uses jq.
  • Runners cannot check out code from GitHub yet. The Worker serves each commit as a tarball through a signed URL, so runners have no Git history.

Repository changes

  • .cloudflare/ci/tsconfig.json and the @cloudflare/workers-types devDependency let vp check type-check the pipeline. The root tsconfig.json still includes only src/**/*, so the action bundles do not change.
  • .cloudflare/ci/src/runner.d.ts declares step.runner(), which @cloudflare/workers-types does not include. It uses the result shape that the runtime returns, logs: { data, truncated }. The Cloudflare CI docs show logs.stdout and logs.stderr.
  • .fallowrc.json adds the pipeline as an entry point and includes the hidden .cloudflare/ directory, which Fallow skips by default.
  • CONTRIBUTING.md has a new Cloudflare CI section for runs, deploys, and the runner environment. AGENTS.md has a navigation line for the pipeline.

🤖 Generated with Claude Code

@socket-security

socket-security Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​cloudflare/​workers-types@​5.20261116.11001009699100

View full report

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Cloudflare CI on cc68d28:

  • ✅ cloudflare-ci/build
  • ✅ cloudflare-ci/unit-tests

Add a Cloudflare CI pipeline in .cloudflare/ci/. It runs the build job
and the Linux unit tests from test.yml in Cloudflare runners, and
reports them as the cloudflare-ci/build and cloudflare-ci/unit-tests
GitHub checks. Runs start manually with Wrangler, because Cloudflare CI
has no GitHub triggers yet.

- Type-check the pipeline in vp check through .cloudflare/ci/tsconfig.json
  and @cloudflare/workers-types. runner.d.ts adds step.runner(), which
  the published types do not include.
- Include .cloudflare/ in the Fallow audit, with the pipeline as an
  entry point.
- Document runs, deploys, and the runner environment in CONTRIBUTING.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fengmk2
fengmk2 force-pushed the ci/cloudflare-ci-pipeline branch from c68c6b5 to ef17292 Compare November 17, 2026 06:46
Each check links to its run in the Cloudflare dashboard and shows the runner log, up to the last 16 KiB, in its summary. Jobs run in timeout 14m, so a hung job keeps its log, and NO_COLOR removes ANSI codes from the log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Cloudflare CI on f6fcb67:

  • ✅ cloudflare-ci/build
  • ✅ cloudflare-ci/unit-tests

View the run in the Cloudflare dashboard

Do not merge. Remove this commit before the PR leaves draft.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Cloudflare CI on a5d2b44:

  • ✅ cloudflare-ci/build
  • ❌ cloudflare-ci/unit-tests (exit 1)

View the run in the Cloudflare dashboard

The check page on the PR shows the runner log. The dashboard link stays at the end of the comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Cloudflare CI on 18b879f:

View the run in the Cloudflare dashboard

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.

1 participant