set up github actions
run a fixa test as part of your ci workflow
prerequisites
- a github repository for your project
- a fixa API key
- at least one agent configured in fixa
setup instructions
create a github actions secret to store your fixa API key
- go to your repository settings
- navigate to “secrets and variables” → “actions”
- click “new repository secret”
- set the name to
FIXA_API_KEY
and the secret to your fixa API key
create a github workflow
create a workflow file in your repository at .github/workflows/fixa-test.yml
with the following content:
configuration options
the workflow accepts the following inputs:
agent_id
- string
the id of your fixa agent
scenario_ids?
- string
comma-separated list of specific scenarios to test. leave it blank to test all scenarios
test_agent_ids?
- string
comma-separated list of test agents to use. leave it blank to use all test agents
time_limit?
- number
test duration limit in minutes (default: 10)
example configurations
basic setup
advanced setup with all options
workflow execution
the workflow will run the specified test whenever a commit is pushed to main or a pull request is opened (depending on how you’ve configured it).
it will succeed if all of the test calls succeeded or fail if at least one test call failed. test results will be available in your github actions workflow run logs.