DEV Community

Simon Raynaud
Simon Raynaud

Posted on

Fail your GitHub Actions deploy if Pathly Ping or Chain is red

Unit tests pass. Prod still breaks on the path users actually hit.

Pathly: Ping if HTTP is up, Flow if a user can walk the journey, Chain if the API hops behind it hold.

Wire a CI gate so the job fails when that path is red:

- uses: pathlyhq/pathly-action@v1
  with:
    api_token: ${{ secrets.PATHLY_API_TOKEN }}
    operation: run-scenario
    scenario_id: ${{ vars.PATHLY_CHECKOUT_SCENARIO_ID }}
    timeout_sec: "120"
Enter fullscreen mode Exit fullscreen mode

Use run-scenario for a fresh check. Use assert-scenario for the last known status (faster).

Live: https://pathlyhq.com/try-flow

Top comments (0)