cheapskate-ci

Run your CI locally.

Installation

Usage

Create a cheapskate-ci.toml in the root of your project. See cheapskate-ci.toml for an example.

Example pre-commit hook (to make sure all commits are passing):

```shell

!/bin/sh

cheapskate-ci run ```

There's no post-push hook, unfortunately, so after pushing you'll want to manually run:

shell cheapskate-ci run --status

Which will again run the steps, and then send a successful commit status to GitHub.

Note: the first time you run this, it will prompt you for a GitHub token. You'll need to generate one with the repo:status scope and paste it in. That token will be cached in ~/.local/share/cheapskate-ci/psst.toml going forward.

How to use cheapskate-ci as a required status to push to the default branch

If you use a pull request flow, you can do the same thing, but just open and merge the PR instead of merging locally.