- Documentation
- Integrations
- GitHub Integration
Integrations
GitHub Integration
Integrate Inpera with GitHub Actions and Pull Requests
Overview
The GitHub integration allows you to automatically run visual regression tests on every pull request and get results directly in your PR comments.
Setup
To set up the GitHub integration:
- Go to Settings → Integrations in your Inpera dashboard
- Click "Connect GitHub"
- Authorize Inpera to access your repositories
- Select the repositories you want to integrate
- Configure your workflow settings
GitHub Actions
Add Inpera to your GitHub Actions workflow:
name: Visual Regression Tests
on:
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Inpera Tests
uses: inpera/action@v1
with:
api-key: ${{ secrets.INPERA_API_KEY }}
project-id: ${{ secrets.INPERA_PROJECT_ID }}Pull Request Comments
Inpera automatically comments on your pull requests with visual test results, making it easy to see what changed and approve or request changes.