Skip to content

Start here / Getting started

Getting started

Set up hatchrun for one GitHub organization and run a first job. Setup starts in app.hatchrun.io, and the app sends you to GitHub for the steps that happen there.

Jobs are billed per second, with a 60-second minimum per job, and there are no free minutes. Jobs wait until the organization has a card on file. See Billing.

You need:

  • owner rights on a GitHub organization (hatchrun does not run for personal accounts);
  • a repository you can push to;
  • a card, added in the app.
  1. Sign in to app.hatchrun.io with GitHub and install the hatchrun GitHub App on your organization. GitHub shows the permissions the App asks for and lets you pick the repositories it sees. See Install the GitHub App.

  2. Under Billing on the organization’s CI page, choose Add a card. Jobs do not start until a card is on file. You can also set the monthly spend cap there.

  3. Create .hatchrun/config.yml in the repository:

    .hatchrun/config.yml
    jobs:
    test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v5
    - run: make test
    workflows:
    ci:
    on:
    push:
    branches: [main]
    pull_request: {}
    jobs:
    - test

    Replace make test with your own command. If the repository has GitHub Actions workflows, hatchrun convert writes a first config from them. Check any config with hatchrun validate. The Quickstart covers installing the CLI.

  4. Commit .hatchrun/config.yml so the pushed commit includes it:

    Terminal window
    git add .hatchrun/config.yml
    git commit -m "ci: add hatchrun config"

    Push the commit to main, or open a pull request. A check run named after the job, here test, appears as queued, then in progress, then passes. Open it to read the live logs in the app.

    If nothing appears, work through My workflow did not run.