Integration

Pathly GitHub Action (pathly-action)

Post-Deploy-Smoke: run-scenario macht den Job rot, wenn der Lauf nicht ok ist. Alias run-and-wait.

OpenAPI-VertragAPI-Schlüssel ausstellenKostenloses Solo-Konto

Vollständiges Dokument, ohne Authentifizierung, bereit für Ihren Client-Generator.

GitHub Action

Offizielle Action pathlyhq/pathly-action@v1. Operationen: ping, assert-scenario, ensure-scenario und run-scenario (Job wird rot, wenn der Lauf nicht ok ist). run-and-wait ist ein Alias. PATHLY_API_TOKEN in Secrets legen.

Typisch: Smoke nach Deploy auf main mit run-scenario. Workflow wird rot, wenn die kritische Journey fehlschlägt. Scopes: runs:trigger runs:read, oder scenarios:write (ensure).

run-scenario (job rouge si pas ok)

# .github/workflows/pathly.yml
name: Pathly CI
on:
  push:
    branches: [main]
  workflow_dispatch:

jobs:
  pathly:
    runs-on: ubuntu-latest
    steps:
      - name: Smoke checkout
        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"

assert-scenario (rapide, pas de nouveau 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"
      }