Overview
The TestDino Reporter GitHub Action uploads Playwright test results to TestDino for centralized analytics, reporting, and debugging. Add it as an always-run step after your Playwright tests and every run is captured whether tests pass or fail.
Control which artifacts are uploaded: JSON results are the baseline. Toggle HTML reports, screenshots, videos, traces, and file attachments individually. Store your API token as a GitHub secret and reference it directly in the workflow.
Key features
- Single workflow step with no CLI installation needed
- Runs on pass and fail with if: always()
- Configurable uploads: HTML, screenshots, videos, traces, files
- Verbose logging option for debugging uploads
- Works with any GitHub Actions runner
How it works
Store your API token
In your GitHub repository, go to Settings → Secrets and variables → Actions. Add a secret named TESTDINO_TOKEN with your TestDino API token.
Add the action step
Add the Testdino1/[email protected] step to your workflow after your Playwright test run. Set if: always() so it runs even when tests fail.
Configure uploads
Set report-dir to your Playwright report directory. Toggle upload-html, upload-traces, upload-videos, and upload-images to include the artifacts you need.
GitHub Actions workflow
name: Playwright Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Run Playwright tests
run: npx playwright test
- name: Upload to TestDino
if: always()
uses: Testdino1/[email protected]
with:
token: ${{ secrets.TESTDINO_TOKEN }}
report-dir: './playwright-report'
upload-html: true
upload-traces: true
upload-videos: true
upload-images: trueInput parameters
The token input is required. Reference it from your GitHub secret as ${{ secrets.TESTDINO_TOKEN }}. The report-dir input defaults to ./playwright-report and can be changed to any path in your workspace.
All upload flags default to false except upload-html which defaults to true. Enable upload-traces, upload-videos, upload-images, and upload-files as needed. Set verbose: true to see detailed upload logs in your workflow.
