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

2026-10-07来源 dev.to DevOpsEnglish

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" 

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

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

原文:https://www.a8q9.cn/en/article/fail-your-github-actions-deploy-if-pathly-ping-or-chain-is-red-8ed41e.html

相关文章