Configure global setup and teardown for your test suites using GitHub Actions while native support is in development.
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:
Copy
Ask AI
name: Stably Test Runner Exampleon: pull_request: push: branches: - master# You need to set these permissions if using the `github-comment` optionpermissions: pull-requests: write contents: writejobs: 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
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.