> ## Documentation Index
> Fetch the complete documentation index at: https://plugwright.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# CI/CD (GitHub Actions)

> Run Plugwright tests automatically on every Pull Request.

Automating your tests is the key to maintaining a stable plugin. Copy this `.yml` file into your `.github/workflows/plugwright.yml` to get instant automated tests for every PR.

```yaml theme={null}
name: Plugwright E2E Tests

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  test:
    runs-on: ubuntu-latest
    
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Set up JDK 17
        uses: actions/setup-java@v4
        with:
          java-version: '17'
          distribution: 'temurin'
          cache: 'gradle'

      - name: Set up Node.js
        uses: actions/setup-node@v4
        with:
          node-version: '18'

      - name: Run Plugwright tests
        run: |
          chmod +x gradlew
          ./gradlew plugwrightTest
```
