Black Friday in 1 day: will your customers be able to pay? 25% off the first year and free setup, until 30 NovemberSee the offer →
Integration
Post-deploy smoke: run-scenario fails the job if the run is not ok. Alias run-and-wait.
Get my API keyOpenAPI contract
Full document, no authentication, ready for your client generator.
Official action pathlyhq/pathly-action@v1, listed on the GitHub Marketplace (“Setup Pathly”). Operations: ping (checks the key), assert-scenario (fails if lastStatus ≠ ok, no new run), ensure-scenario (creates / updates a Ping or a Chain via httpChain) and run-scenario (triggers a run and fails the job if status is not ok). run-and-wait is an alias of run-scenario. Store PATHLY_API_TOKEN in repo secrets.
Typical use: after the test job, assert-scenario fails the workflow if the last journey is not ok, without starting a new run. After a deploy, run-scenario replays the journey and turns the workflow red if it fails. Minimal scopes: scenarios:read for assert-scenario; runs:trigger + runs:read for run-scenario; scenarios:write for ensure-scenario.
assert-scenario after tests
# .github/workflows/pathly.yml
name: Pathly CI
on:
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: npm test
pathly:
needs: test
runs-on: ubuntu-latest
steps:
- name: Assert last journey
uses: pathlyhq/pathly-action@v1
with:
api_token: ${{ secrets.PATHLY_API_TOKEN }}
operation: assert-scenario
scenario_id: ${{ vars.PATHLY_CHECKOUT_SCENARIO_ID }}run-scenario after deploy
- name: Pathly run
uses: pathlyhq/pathly-action@v1
with:
api_token: ${{ secrets.PATHLY_API_TOKEN }}
operation: run-scenario
scenario_id: ${{ vars.PATHLY_CHECKOUT_SCENARIO_ID }}run-scenario after deploy
- name: Pathly run
uses: pathlyhq/pathly-action@v1
with:
api_token: ${{ secrets.PATHLY_API_TOKEN }}
operation: run-scenario
scenario_id: ${{ vars.PATHLY_CHECKOUT_SCENARIO_ID }}assert-scenario (fast, no new run)
- name: Pathly assert
uses: pathlyhq/pathly-action@v1
with:
api_token: ${{ secrets.PATHLY_API_TOKEN }}
operation: assert-scenario
scenario_id: ${{ vars.PATHLY_CHECKOUT_SCENARIO_ID }}ping post-deploy
- name: Pathly ping
uses: pathlyhq/pathly-action@v1
with:
operation: ping
api_token: ${{ secrets.PATHLY_API_TOKEN }}ensure-scenario
- name: Ensure checkout
uses: pathlyhq/pathly-action@v1
with:
api_token: ${{ secrets.PATHLY_API_TOKEN }}
operation: ensure-scenario
scenario_json: |
{
"name": "Checkout",
"url": "https://www.example.com/cart",
"intervalSec": 300,
"severity": "major"
}