# playwright-run Run Playwright E2E tests for one shard and upload the blob report as an artifact. ## Inputs | Input | Required | Default | Description | |-------|----------|---------|-------------| | `working-directory` | No | `.` | Directory containing `package.json` and `playwright.config.ts` | | `node-version` | No | `24` | Node.js version | | `pnpm-version` | No | `10.33` | pnpm version | | `jfrog-token` | No | `""` | JFrog npm auth token | | `shard-index` | No | `1` | Current shard index (1-based). Set to `1` when not sharding. | | `shard-total` | No | `1` | Total number of shards. Set to `1` to disable sharding. | | `artifact-retention-days` | No | `3` | Number of days to retain the blob report artifact | ## Usage ```yaml - uses: https://schmalz-git.git.onstackit.cloud/schmalz/shared-actions/playwright-run@playwright-run-v1 with: working-directory: frontend node-version: 22 jfrog-token: ${{ secrets.JFROG_TOKEN }} shard-index: ${{ matrix.shard-index }} shard-total: 5 ``` ## Notes - Intended for matrix shard jobs. - Uploads one artifact per shard named `blob-report-`. - Use `playwright-merge` in a follow-up job to merge shard reports.