Skip to content
You're viewing the v2 docs. Looking for v1?Go to v1 docs
Docs
Testsigma
Popular questions
↑↓ to navigate↵ to selectesc to close
Book a demo

GitHub Actions

GitHub Actions runs workflows from your repository’s .github/workflows/ directory. One workflow step calls the Testsigma shell script, so every commit triggers the test plan and waits on the result.

Prerequisites

  • An API key, the test plan ID, and the script (run_smoke_tests.sh) committed to the repository.

Create a .github/workflows directory in your GitHub repository if it does not already exist. Each YML file in it defines one pipeline, so add as many as your build processes need. This example uses testsigma-cicd.yml, which runs on every commit and invokes the script:

.github/workflows/testsigma-cicd.yml
name: Testsigma tests
on: [push]
jobs:
run-test-plan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Trigger Testsigma test plan
env:
TESTSIGMA_API_KEY: ${{ secrets.TESTSIGMA_API_KEY }}
run: |
chmod +x ./run_smoke_tests.sh
./run_smoke_tests.sh

The shell script targets a specific test plan through two keys, set along with any other parameters it accepts:

  • TESTSIGMA_API_KEY: an API key from Settings > API Keys.
  • TESTSIGMA_TEST_PLAN_ID: the plan’s ID, from Test Plans > CI/CD Integrations.

Was this page helpful?