name: Revyl Staging Continuous Integration
on:
# Still keep PR trigger
pull_request:
branches:
- main
types:
- opened # When PR is first created
- reopened # When PR is reopened
- synchronize # When new commits are pushed to the PR
permissions:
contents: read
jobs:
revyl-smoke-tests:
# Only run if the PR is from staging branch
if: github.event.pull_request.head.ref == 'staging'
runs-on: ubuntu-latest
steps:
- name: Revyl Smoke Tests
uses: RevylAI/revyl-gh-action@main
env:
REVYL_API_KEY: ${{ secrets.REVYL_API_KEY }}
with:
test-id: "6c4dd472-94df-4ba5-b14a-0cd24e12348d"
revyl-device-url: "https://custom-device.example.com"