Skip to content

Local testing

Dmitrii Kovanikov edited this page Oct 9, 2019 · 1 revision

This page describes how to run and test Hintman locally.

Prerequisites

  1. smee:
    • npm install --global smee-client
  2. cabal >= 3.0 or stack >= 2.0

How to run

  1. Run smee forwarder in a separate terminal window:
    • smee -u "https://smee.io/uTG0BCXnjq4DEff7" -p 8080
  2. Run backend:
    • KEY=<SECRET_KEY> PK_PATH=<PATH_TO_PEM_FILE> cabal run hintman -- -p 8080
  3. Use special repository hintman-target to test GitHub locally.
  4. Hintman handles incoming events. If an event of opening a PR is triggered, you should be able to see logs.
Clone this wiki locally