Skip to content
Seaeye Docs

The CLI from any CI

froog run creates a sandbox, pushes the checkout, runs the command, deletes the sandbox and exits with the command's code. Store a ci preset key as a secret:

$ froog api-key create github-ci --preset ci --ttl 90d
$ gh secret set FROOG_API_KEY        # paste the froog_… key
# .github/workflows/froog-tests.yml
name: Tests on froog
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    timeout-minutes: 30
    env:
      FROOG_API_KEY: ${{ secrets.FROOG_API_KEY }}
    steps:
      - uses: actions/checkout@v4
      - run: curl -fsSL https://froog.tech/install | sh
      - run: froog run --size large -- make test        # or --from ci-base, -e KEY=VALUE

Keep a toolchain in a snapshot (froog snapshot box --name ci-base) and use --from ci-base. The same two lines work in GitLab CI, CircleCI or Buildkite. Sandboxes made this way are froog sandboxes: see sandboxes and snapshots in froog's docs.