We currently do not support global setup and tear down natively. It is on our roadmap, and we’d love to chat with you about your specific use case.
In the meantime, you can trigger Stably tests in Github action and add setup and tear down steps. Here is an example:
name: Stably Test Runner Example
on:
pull_request:
push:
branches:
- master
permissions:
pull-requests: write
contents: write
jobs:
stably-test-action:
name: Stably Test Runner
runs-on: ubuntu-latest
steps:
- name: Global Setup
run: echo "Running global setup tasks"
- name: Stably Runner Action
id: stably-runner
uses: stablyhq/stably-runner-action@v3
with:
api-key: ${{ secrets.API_KEY }}
test-group-id: clsv2qusn000111w9xs23b4uh
- name: Global Tear Down
run: echo "Running global tear down tasks"
You will need an API key to trigger Stably from GitHub action. Visit the
settings page to find the key