GitHub Actions
Submit test results from any language/framework to test management services like Testfiesta, TestRail, and more.
TestRail
TestRail uses Basic Authentication with username and password.
Setup
Create TestRail API credentials:
Go to your TestRail instance β Administration β Site Settings β API
Enable the API
Note your username and password (or create an API-specific user)
Add to GitHub Secrets:
TESTRAIL_CREDENTIALS = "your-username:your-password"
Important: Use the format
username:password
- the action will handle the Base64 encoding.
Usage
- name: Submit to TestRail
uses: testfiesta/tacotruck-action@v1
with:
provider: testrail
handle: <your-username>
project: <your-project-id>
results-path: ./junit-results.xml
credentials: ${{ secrets.TESTRAIL_CREDENTIALS }}
base-url: 'https://<your-username>.testrail.io'
run-name: 'CI Run #${{ github.run_number }}'
config: |
{
"suite_id": 2,
"run_name": "Automated Tests - ${{ github.workflow }} #${{ github.run_number }}",
"milestone_id": 5,
"assigned_to": 123
}
suite_id
β
Test suite ID (if using suites)
run_name
β
Name for the test run (defaults to "CI Run {run_number}")
milestone_id
β
Milestone to associate the run with
assigned_to
β
User ID to assign the test run to
Testfiesta
Testfiesta uses Bearer token authentication.
Setup
Get your API token:
Go to Testfiesta dashboard β Settings β API Tokens
Generate a new token
Add to GitHub Secrets:
TESTFIESTA_API_KEY = "your-api-key"
environment
β
Test environment (defaults to "default")
tags
β
Array of tags or comma-separated string
branch
β
Git branch (defaults to current branch)
Input Reference
provider
β
Provider name (testrail
, testfiesta
)
handle
β
Handle of the provider (e.g. username for testrail, org handle for testfiesta)
project
β
Project id or key of the provider
results-path
β
Path to test results file or directory
credentials
β
Authentication credentials (format varies by provider)
base-url
β
Base URL for the provider's API
run-name
β
Name of the test run
config
β
Provider-specific configuration (JSON format)
config-file
β
Path to configuration file
fail-on-error
β
Fail workflow if submission fails (default: true
)
Last updated