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:

  1. Go to Settings → Integrations in your Inpera dashboard
  2. Click "Connect GitHub"
  3. Authorize Inpera to access your repositories
  4. Select the repositories you want to integrate
  5. 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.