Move faster with production-like data and zero risk. Create a database clone per PR, run tests in CI, and merge with confidence.
Instant copy‑on‑write clones for each branch/PR; share base data, pay only for changes.
Use masked, seeded data in ephemeral branches without touching production.
Spin a clone in setup, run tests, and auto‑clean on success or failure.
Works with your drivers, ORMs, migrations, and extensions.
Fast feedback loops reduce regressions and long‑lived branches.
name: test
on: [pull_request]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create clone
run: |
curl -H "Authorization: Bearer ${{ secrets.VELA_TOKEN }}" \
-X POST https://api.vela.dev/clones \
-d '{"branch":"${{ github.head_ref }}"}' > clone.json
- name: Run tests
env:
DB_URL: ${{ steps.clone.outputs.url }}
run: npm test
- name: Cleanup
if: always()
run: curl -H "Authorization: Bearer ${{ secrets.VELA_TOKEN }}" -X DELETE $(jq -r '.id' clone.json)