Catch bugs before they hit production. Glance automatically tests every preview deployment with AI-powered browser testing.
https://github.com/user-attachments/assets/demo.mp4
- uses: morphllm/glance-preview@v1
with:
api-key: ${{ secrets.MORPH_API_KEY }}
preview-url: ${{ steps.deploy.outputs.url }}That's it. Glance will test your preview and comment the results directly on your PR.
- Zero test maintenance - AI adapts to UI changes automatically
- Real browser testing - Not screenshots, actual interaction
- Works with any stack - Vercel, Netlify, custom infrastructure, self-hosted
- PR comments - Results posted where your team already works
name: Preview Test
on: pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy Preview
id: deploy
run: |
# Your deployment script
echo "url=https://pr-${{ github.event.pull_request.number }}.preview.example.com" >> $GITHUB_OUTPUT
- name: Test with Glance
uses: morphllm/glance-preview@v1
with:
api-key: ${{ secrets.MORPH_API_KEY }}
preview-url: ${{ steps.deploy.outputs.url }}
instructions: |
Test the checkout flow:
- Add item to cart
- Complete purchase
- Verify confirmation| Input | Required | Description |
|---|---|---|
api-key |
Yes | Your Morph API key |
preview-url |
Yes | Preview deployment URL |
instructions |
No | Custom testing focus |
| Output | Description |
|---|---|
test-id |
Test run ID |
status |
Test status |