Skip to content
Source
Sign inSign up

How CI works

CI / Start

CI on TanStack Source

You want each push and each pull request tested, and no merge until the tests pass. Start with your first workflow, or find the task that you have now.

3 min read

How CI works on TanStack Source:

  • A workflow is a TypeScript file in .source/workflows/.
  • The forge runs each job of a workflow in a container of its own, in a fresh VM.
  • Each run gets a trust level. The level decides which permissions and which CI environments, with their secret values, the jobs get.
  • You can run the same job on your machine with src ci run.

Start here

  1. Your first workflow: write a workflow, push it, and see a green check on a pull request.
  2. Run CI jobs on your machine: run a job as the forge runs it, and fix it without a push.
  3. Trust levels and secrets: what each trust level can do, and how jobs use secrets.
  4. Branch rules: block a merge until the required checks pass.

Make CI faster

Show results on pull requests

When a check fails or waits

  • A check failed, waits or never started: each job says why it ended or why it waits. A workflow that did not start shows a failed run with the reason and the fix. See When something on your pull request fails.
  • You want an agent to fix a failed run: turn on the step Fix failing CI of the Keep green agent, in the software factory. It reproduces the failure, fixes the cause and pushes the fix.
  • You opened a pull request from a fork: Pull requests from a fork says why your run waits, and what it can do.
  • You work on a private pull request: its runs, logs, artifacts and checks show only to the people who can see it. See Work on a change in private.

Move from GitHub, or look something up