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.
Before you start
Section titled “Before you start”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.
-
Install the GitHub App
Section titled “Install the GitHub App”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.
-
Add a card
Section titled “Add a card”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.
-
Add a config
Section titled “Add a config”Create
.hatchrun/config.ymlin the repository:.hatchrun/config.yml jobs:test:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v5- run: make testworkflows:ci:on:push:branches: [main]pull_request: {}jobs:- testReplace
make testwith your own command. If the repository has GitHub Actions workflows,hatchrun convertwrites a first config from them. Check any config withhatchrun validate. The Quickstart covers installing the CLI. -
Push and watch the check run
Section titled “Push and watch the check run”Commit
.hatchrun/config.ymlso the pushed commit includes it:Terminal window git add .hatchrun/config.ymlgit commit -m "ci: add hatchrun config"Push the commit to
main, or open a pull request. A check run named after the job, heretest, 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.
Next steps
Section titled “Next steps”- Secrets and variables and Environments hold what jobs need at run time.
- Choose a runner size moves a slow job to a bigger machine.
- Migrate from GitHub Actions moves the workflows you have, one at a time.