Integration Guide
GitHub Actions + ToolCenter
Automate visual regression testing, generate documentation PDFs, and monitor your live site — all from your CI/CD pipeline.
CI/CD Use Cases
🔍 Visual Regression Testing
Capture screenshots of your app after each deploy. Compare against baseline images to catch unintended UI changes before they reach production.
📄 Auto-generate Docs PDFs
On every release tag, convert your HTML documentation to PDF and attach it to the GitHub Release as a downloadable asset.
🔗 Post-deploy Link Checks
After deploying to production, scan your site for broken links. If any are found, the workflow fails and creates a GitHub Issue with details.
🔐 SSL & Security Audits
Run weekly SSL certificate checks and security header analysis. Get alerts when certificates are expiring or security headers are missing.
Example Workflow
name: Visual Regression Screenshots
on:
push:
branches: [main]
schedule:
- cron: '0 8 * * 1' # Every Monday at 8am
jobs:
screenshots:
runs-on: ubuntu-latest
steps:
- name: Take screenshot of production site
run: |
curl -X POST "https://api.toolcenter.dev/v1/screenshot" \
-H "Authorization: Bearer ${{ secrets.TOOLCENTER_API_KEY }}" \
-H "Content-Type: application/json" \
-d '{
"url": "https://myapp.com",
"fullPage": true,
"format": "png",
"width": 1920,
"height": 1080
}' \
--output screenshot.png
- name: Upload screenshot as artifact
uses: actions/upload-artifact@v4
with:
name: production-screenshot
path: screenshot.png
💡 Security tip: Store your API key as a GitHub Secret (TOOLCENTER_API_KEY). Never hardcode API keys in workflow files.
Add ToolCenter to your pipeline
Get your API key and start automating your CI/CD workflows.