295a9948f7
- Add findDataFile() helper to search up directory tree for data files - Fixes tests running from subdirectories (internal/handlers) - Install Chrome in GitHub Actions for PDF generation tests This resolves test failures that have existed since PDF tests were introduced: - Error: 'open data/cv-es.json: no such file or directory' - Error: 'chrome failed to start' Tests now properly locate data files from any working directory and have Chrome available for PDF generation in CI environment.
GitHub Actions Workflows
deploy.yml - Automated Deployment
Trigger: Push to main branch or manual dispatch
What it does:
- SSH into your server
git pull origin mainsudo systemctl restart cv-server- Verify deployment via health check
Required GitHub Secrets:
SSH_PRIVATE_KEY- SSH private key for server accessSSH_HOST- Server IP or domainSSH_USER- SSH username
Optional GitHub Secrets:
SSH_PORT(default:22)SERVICE_NAME(default:cv-server)REPO_PATH(default:/opt/cv-server)
Manual deployment: Go to Actions → Deploy CV Server → Run workflow
Setup guide: See GITHUB-ACTION-SETUP.md